I need to check if a given object implements an interface. In C# I would simply say:
if (x is IFoo) { }
Is using a TryCast() a
TryCast()
Like this:
If TypeOf x Is IFoo Then