Pin magnet