If you've ever needed to convert a Nullable<T> type to a its default, non-nullable value when its nullable value is null, here's a handy extension method to help you out. public static T NullableToValue<T>(this T? value) where T : struct { return value ?? default(T); }