cast iron pipes to ABS or galvanized pipes to copper, you'll need a transition fitting. In some cases, you can do it by taking two threaded adapters of different materials and screwing them together.