public static int GetSurveyUserIdValue(this ClaimsPrincipal principal) { return (int)Convert.ChangeType(principal.FindFirstValue(SurveyClaimTypes.SurveyUserIdClaimType, true), typeof(int)); }