The metal is solidified in metal casting machinery through a process called solidification. This typically involves pouring molten metal into a mold, where it cools and solidifies to take the shape of the desired object. The cooling can be accelerated by using cooling agents or cooling chambers within the machinery.