Make `integer()` validator work with any integer-like object