This code produces an InvalidCastException:Dim o As Object = CType(2, Int64?)Dim i As Int32?i = oWhereas a very similar piece of code, minus object boxing, succeeds:Dim l As Int64? = 2Dim i As Int32?i = l
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...