Implement isInstanceOf()