, you could easily create a validation module that would provide these validation routines. It seems your main goal is to validate the type (int, float, char, etc) of the input.
So I were you, I'd consider taking this idea and writing a module containing constraint routines for
(maybe named 'Data::FormValidator::Constraints::Types' ) It would definitely be or more use to more people