Explicit Cast From Type to Not Implemented Interface Compiles but Fails in Runtime

I have a class and an interface as follows: internal class DoStuff { public int X { get; } public void Do() => WriteLine(X); public DoStuff(int X) => this.X = X; } internal interface IDoStuff { void Do(); } The class DoStuff does not implement the interface IDoStuff. Therefore, there does not exist an implicit… Read More Explicit Cast From Type to Not Implemented Interface Compiles but Fails in Runtime