Casting spells for if statements