Typeinstance equals operator fixed
Typeinstance equals operator fixed for type case