So if it were me, I'd cut where the red lines are. You'll make the connection from the cast iron to the plastic using a rubber coupling called a Fernco. So the key is to have enough pipe left behind after the cut to clamp the Fernco onto.
What's happening after the elbow circled in the lower left? Can't quite see where the cut would be there.