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

Don't mess with `_before_type_cast` for numeric types