You could cut the pipe below the fitting and use a no-hub coupling.
Measure the OD of the pipe.
If it's 4-3/8" it's a standard 4" no-hub
If it's 4-1/8", then that's copper pipe size, and you will need a Copper x Cast no-hub, Mission makes those.
A standard no-hub coupling with old cast iron pipe. This should have been a copper sized mission coupling by new cast iron.