Add correct casting to access java objects in jsp