In NYC, we used to install cast-iron lead joint pipes for water main distribution, up until 1985 when a law was passed banning it. To phase out old water main, the NYCDEP has a rule: All pipes older than 1975 (or thereabouts) underneath areas of road reconstruction will be replaced by ductile iron pipe.  But NYC still continues to have a lot of pipe that are cast iron even now.