Is there a good primer (spray can) to stop cast iron engine parts from rusting?

I've had pretty good success with Permatex rust converter.

Clean it up as best you can first.