I\'ve to use a library and need to check (if this instance of that) a lot. For example:
if(myInterface instanceof Foo) {