Maybe this is better:

Code:
...
TArray<ACharacter*> OutCharacters;
GetAllCharactersInWorld(OutCharacters);
...
...