session return cast