I got Answer myself from another source. first we have to check type with .as
method.
here is full code
for(RqlObject c : cursor) {
Object o = c.as();
if (o instanceof java.util.List<?>) {
List<Object> list = o.getList();
}else if (o instanceof ListIterator<?>) {
List<Object> list = o.getList();
}else {
java.util.Map<String, Object> map = o.getMap();
}
}