Best way to find specific actor in world?

I tried this code but got a number of errors such as “Incomplete type not allowed” for ActorItr.