Secure the pipe with a clamp or vise. Use a diamond disk which is suitable for cast iron. Mark the cutting line and follow it along while cutting. If the pipe is too thick, you might need to rotate it upside down to cut it further since the small blade won't get through.