public static int ToInt(this HttpCookie cookie, int defaultValue = -1)
        {
            int?nullable = cookie.ToIntNull();

            return(nullable.HasValue ? nullable.GetValueOrDefault() : -1);
        }