Cleanest way to convert a `Double` or `Single` to `Integer`, without rounding
After some searching, it seems that VB has no clean way of accomplishing that, short of writing an extension method.
The C# (int)
cast translates directly into conv.i4
in IL. VB has no such operators, and no framework function seems to provide an alternative.
Usenet had an interesting discussion about this back in 2005 – of course a lot has changed since then but I think this still holds.