AC is converted to DC using a rectifier, which allows current to flow in only one direction.