Ah, this makes sense. Do you know how the "chopping it up into AC"works?
https://en.wikipedia.org/wiki/Flyback_transformer#Operation_...
See the Switch−Mode Power Supply Reference Manual from ON Semiconductor for info on all the other possible ways to build a switching power supply.