checkType