Not sure about cast iron plumbing but I've been in a house that had lead piping. Every morning you'd have to run the taps before using it to make sure any dissolved lead was flushed out...

- Trevor