The question is self explanatory I guess. This is what I am doing:
Student student = Student.findStudent(s.getRegNumber(), (ClientSession)httpSesn);
findStudent() method returns me an object of the Student class. As you can see I am casting HttpSession object into a ClientSession. Is it advisable? Are their any hidden snags involved? What are the best practices?