I tried using your code but i'm still getting aClassCastExceptionis this because my object is holding 2 different properites int andString ?