Heat treatment of casting is primarily used to alter the physical , and sometimes chemical , properties of the cast alloy .Many of the mechanical properties of the both ferrous and non-ferrous alloys are determined by their