ToType check