Code like:
WriteLine((true : IConvertible).ToInt32(null));
work fine.
What do you mean?
Sorry for the delay. I'm having problems with google groups.
Can I assume true actually implements IConvertible?
double doesn't implement IMyFunnyInterface.
A explicit cast was provided (it returns a wrapper object implementing
that interface) but, probably because it was defined in the wrong
place, it was not called (breakpoint not hit).
The double was converted anyway and passed to a function as argument,
causing said runtime exception.
Is it by design?