Discussed in #3321
Originally posted by greenozon November 3, 2024
Quick question: is it possible to somehow tell ILSpy during decompilation that certain casting is needed, otherwise it won't compile?
eg:
ILSPy decompiled some routine as follows, but it does not compile

and IL for it:

Original code looks like
