TArray get item

I need to get an AArmorMod do some stuff around it like that (for a mod with shield)

for (int32 i = 0; i < modSlot.Num(); i++)
	{
		AArmorMod *current = Cast<AArmorMod>(modSlot[i]);
		if (current->hasShield)
		{
			maxShield += current->maxShield;
		}
	}