However , rapid cooling can be used to solidify a shell of white cast iron , after which the remainder cools more slowly to form a core of gray cast iron .
There are two main types of cast iron : gray cast iron and white cast iron .