Internal Error, Invalid Cast

Island/Windows, Element Build 2488
The highlighted part of code gave “Internal Error”. @ck

Test Project is here: Island.7z (1.9 MB)

Update:

after I changed
if targetType.IsBoolean then targetVal := T(Convert.ToBoolean(aValue));
to
if targetType.IsBoolean then (^Boolean(@targetVal))^ := Convert.ToBoolean(aValue));

The Internal Error is gone! The compiler is happy now, but I am not sure if I am doing the right thing?

FTR, no need to ping me or Carlo explicitly; every post here will be seen and handled.

Thanks, logged as bugs://83992

Acknowledged.

1 Like

bugs://83992 got closed with status fixed.