Baking pans made of metal can withstand high temperatures and conduct heat better than glass pans. For an evenly baked cake, it is better to use a metal pan.