Refactoring session cast 1