It is best to allow cakes to come to room temperature in the baking pan so they do not break when trying to remove them. Allow them to cool for at least 30 minutes before taking out of the pans.