Shared Function TypeofIntoNullableT(of T As Structure, U As Structure)(input As T?, ByRef output As U?) As Boolean
output = If(input.HasValue, Microsoft.VisualBasic.CompilerServices.Conversions.ToGenericParameter(Of U?)(input.Value)), NOthing)
Return output.HasValue
End Function
Dim input As Integer? = 123
Dim output As Double? = 0