I'm having a problem converting an interface that has already been implemented to a different class that I want to perform some additional methods.
public interface ISomeInterface { int Widgets { get; set;} } public class SomeClassA : ISomeInterface { int Widgets { get; set;} } public class SomeClassB : ISomeInterface { int Widgets { get; set;} public void DoExtraStuff() {...} } ISomeInterface someClassA = new SomeClassA(); SomeClassB someClassB = (ISomeInterface)someClassA; //InvalidCastException someClassB.DoExtraStuff(); //What i'm trying to execute Hope this makes sense...