How to get the team index of the agent?

CreativeTeamIndex is type int right?
Can I do like this image?
Im so beginner…