I am getting this error, but don't know why. Here
feedArray.get(mJazzy.getCurrentItem()).get("TotalCount_Smasheys")
returns an Object type. I followed this link to cast Object
to Integer
.
Screen 1: Here I inspected:
feedArray.get(mJazzy.getCurrentItem()).get("TotalCount_Smasheys")
and got value:
Screen 2: Here I inspected: (Integer)(feedArray.get(mJazzy.getCurrentItem()).get("TotalCount_Smasheys")) and it throws exception:
EDIT: It is very confusing. feedArray.get(mJazzy.getCurrentItem()).get("TotalCount_Smasheys") returns me an Object, which is actually an Integer, so I can't use (String) on it.