Fix up some erroneous casting, better /npc create behaviour