Cannot connect For each loop array element to target

Try selecting the loop node, right-clicking it, and selecting “Refresh Node”. ForEach loops won’t update their output element type when you change the input array type.