type check in list