Convert explicitly session[:previous_redirect_to_cas] to datetime