The material of a cone is converted into the shape of a cylinder of equal radius. If the height of the cylinder is 5 cm, find the height of the cone.