I think much of the old steam engines (cylinders, etc) were cast in gray iron.
I am not sure about things like one-piece pistons, crankshafts, connecting rods, etc.
They made steel earlier than I thought (according to one source), but I am not sure when it came into normal production for engine...