Obj Inspector Class Cast Exception fix