Type check target and iterable of for loop