I have tree of classes:
classA { classB b; classC c; ..... }
I have HQL query like this:
If you are really sure you can do type casts.
List newlist = ...; for(Object o : list){ newlist.add((classD) o); }
Be careful with this though
So yes. Manual casting. (note: with arrays (you can directly cast) )