List of utility methods to do Object to Int Convert
if (obj != null) { String s = obj.toString(); if (s.matches("[0-9]*")) { return Integer.parseInt(s); return -1;