The biggest issue is moisture. An air fryer's fast-moving convection heat can cause meat and certain vegetables to dry out.
You can cook most food in a cast-iron pan but some foods will strip the enamel coating from your carefully seasoned skillet.