It depends on what it's being used for. Cast iron is great for engine blocks and anything that will be cast into irregular shapes, but cast iron tends to be brittle and can crack or break. Steel alloy tends to be tougher and holds up to abuse a little better. Also, cast iron is more difficult to weld.
Your question doesn't specify what the cast iron is being used for so I can't be more specific.