Added methods to check for all basic types of numbers (int, float, long,
and double)