valueThe Nullable<T> value to convert to type T.
The value, if any, of the specified nullable value. Otherwise, a InvalidOperationException is thrown.
TypeReasonInvalidOperationException Nullable<T>.HasValue is false.