Another suggestion:
If you have only two pins that are stuck, and have two irons and a friend, drench both joints in fresh solder, keep the irons at the joints while one of you pulls out the transformer.
The trick temol posted works well esp if the pins are next to each other