https://bugs.winehq.org/show_bug.cgi?id=50849
--- Comment #4 from Esme Povirk madewokherd@gmail.com --- The issue seems to be that the comparison (t == typeof(int)) doesn't work as expected, we have a reference to the System.Int32 type on both sides, but they are not identical object references.
It should probably be using the Equals method.