I have written a code
Integer objname= (Integer)Result.get(i+2);
int j=objname.intValue();
System.out.println("j value" +j);
The value in Result.get(i+2) is int and contains either 1 or 0
But it showing the following exception
java.lang.ClassCastException: java.math.BigDecimal
suggestions are invited to improve the code
Thanks in advance