If it turns out to be lead, then take a 1/4" drill bit and drill a bunch of holes all around it.It will come right out with a straight bladed screw driver. Go at it slowly.
That cast iron pipe is known as "service weight" hub and spigot pipe. If that joint is not lead, then it is either mortar (not common) or plastic seal. You can cut the pvc right at the hub, carefully slit the pvc fitting and remove it.It has a ridge on the end as illustrated above.Then you can...
You need one each of these to repair/replace that joint...
https://www.homedepot.com/p/Fernco-2-in-Service-Weight-Cast-Iron-Hub-to-2-in-Sch-40-PVC-Compression-Donut-P22U-205/100372278
https://www.homedepot.com/p/NIBCO-2-in-PVC-DWV-Hub-x-Spigot-Soil-Pipe-Adapter-C4805HD2/100677974...
I am going to use TimberHP for my wall insulation and Oskorp VARISMART DUO+ for the intelligent vapor barrier in my 40x30 shop. Based on 1440 sq ft the Timber HP is around $1000 less and the Oskorp 40% less. I talked directly to the factory and they stated that the smart vapor barrier is...