You should be able to do it with white spirit or paraffin. Do be careful, use rubber gloves and plenty of old rags, which need to be disposed of, not left in a crumpled heap in the corner of the shop. Once you have cleaned the cast iron you need to use something like Liberon lubricating wax to stop rust starting, this has the bonus of making machine tables slippy.