Broken exhaust manifold bolts

If the bolts that broke are on the ends of the head, the hole goes all the way through. So it might be easier to screw the broken piece into the head and get it out with a magnet??