You can cook most food in a cast-iron pan but some foods will strip the enamel coating from your carefully seasoned skillet.
(The one exception is carbon steel, what you might call a cousin to cast iron). Some of these pans are meant to last a lifetime, others aren’t. But regardless, upkeep is important. For this ...