I have an List e.g
userList is basically a collection of User objects and has been casted to Object due to some project need.Code:List<Object> userList = new ArrayList<Object>();
My question: Is it possible to convert the entire userlist into List of User objects in one line or I will need to iterate through every object in the list, type cast into User object n add one by one.

