fixing up cast command and spellbook copy constructor