Cerium is sometimes used in alloys because it often makes the alloy more heat resistant . A traditional use of cerium was in the pyrophoric mischmetal alloy used for light flints . Because of the high affinity of cerium to sulfur and oxygen , it is used in various aluminium alloys , and iron alloys .