Attempt casting of simple number types before throwing TypeError