Mathutils cast

Remove the unchecked casts in Mathutils.cast().

Also, if the number is already of the desired type, no processing is required.