Replaced type operator with isintance