Don't mess with `_before_type_cast` for numeric types
Merge pull request #15550 from sgrif/sg-numeric-types

Don't mess with `_before_type_cast` for numeric types