I tried different ways to fix this, but I am not able to fix it. I am trying to get the Boolean value of an Object passed inside this method of a checkBox:<
Instead of casting it, you can do something like
Boolean.parseBoolean(string);