parse to int using java code example
Example 1: java convert String to int
int i = Integer.parseInt(myString);
Example 2: parse object to int java
int i = (Integer) object;
int i = Integer.parseInt(myString);
int i = (Integer) object;