I'd go along with the idea of calling a plumber. If you're determinded,
and if the pipe is in the open, then yes, you can use the same diameter PVC
pipe as a replacement. There are adaptors that make the job easy. The
tough part for the amateur is cutting the cast iron.