Depending on a lot of factors, both of the direct application and quality of wetted surfaces (or treatment of inner surfaces = nothing ?) and general construction of the valve.Ggenerally I would tend to regard ductile iron as better than cast iron.
Quite another thing is the general type of spring loaded valve selected, dimentioning and ability to prevent 'water hammer* or other problems in the systems. (Search this forum for previous discussions)