try-catch for parsing of int, long, double etc.