native implementation of instanceof