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() and then checking for Nothing the best way?
TryCast()
Nothing