An electromagnet on a recycling plant conveyor belt is used to pick up and move metal cans. Electromagnets attract ferromagnetic metals like iron, nickel, and cobalt. Electromagnets have the advantage over permanent magnets in that their magnetic field can be switched on and off by controlling the electric current running through the magnet coils.