checks if argument have same prototype of an "native" javascript type