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()
Try the following
if TypeOf x Is IFoo Then ...