Page 1 of 1

version 2021: Unable to cast object of type 'XXXX' to type 'System.IConvertible'

Posted: Wed Mar 13, 2024 6:28 am
by weloveayaka

Code: Select all

public static int TestConversions()
{
    int intValue = 42;
    long longValue = intValue; 
    short shortValue = (short)intValue; 
    return (int)(longValue + shortValue);
}
Hello Admin, I finally find out minimal code to reproduce this problem.
Release configuration.

Re: version 2021: Unable to cast object of type 'XXXX' to type 'System.IConvertible'

Posted: Sat Mar 16, 2024 7:39 am
by Admin
Fixed in the 2023 build.

Re: version 2021: Unable to cast object of type 'XXXX' to type 'System.IConvertible'

Posted: Tue Mar 26, 2024 6:10 pm
by galeondx
i also want to request a new build here since i run into some .Net bugs in build 2001.
thx :)

Re: version 2021: Unable to cast object of type 'XXXX' to type 'System.IConvertible'

Posted: Wed Mar 27, 2024 2:06 pm
by Admin
Done.