Check it using
IS
. With c# the support for interfaces is more native to the language so can be handled like any other class type.
if (myObject is IMyInterface)
{
IMyInterface iMyInterface= (IMyInterface) myObject;
}
else
{
console.WriteLine ("Interface unsupported");
}
Good luck!