The galvanized pipe is probably threaded into the cast iron. If so, just unscrew it and get an ABS adapter. This has male threads on one end and slip coupler on the other. If the pipe is not threaded, it is leaded in you'll need to get the lead out. Easiest way is to get a plumber to do it.