Kill magic casting code for good