TArray access seleted object's method

Hi, i’m not really familiar with TArray, ant here’s what i want to do:

for (int i(0); i <= TargetPoints.Num; i++)
	{
		if(TargetPoints[i].GetTag() == Tag)
               {
               
               }
	}

But it seems like i cant access TargetPoints[i].GetTag()

Thank you