try-catch for parsing Int,Long,Double.