You can prevent thermal shock to your cast iron pan by gradually heating it either in a preheating oven or on the stove top on low heat. Gradually increasing the temperature when cooking with cast iron allows the material to slowly expand as it heats and can prevent damage to your cookware.