New type of star could solve cosmic magnet mystery