List of utility methods to do Object to int
int | objToInt(Object obj) obj To Int Integer integer = null; if (obj != null) { integer = (Integer) obj; return integer; |
Integer | objToInteger(Object obj) obj To Integer Integer result = 0; try { result = Integer.valueOf(obj.toString()); } catch (Exception e) { result = null; return result; |