The same way anything converts AC to DC. It rectifies it and smooths the ripple using diodes and capacitor(s).
G00gle DC rectifier.