Fix crash if calling this function that obviously isn't used. Stupid runtime type checks.