How can I add an actor to a property in a blueprint in compile time?

I want to add the TriggerVolume actor to my property.But I can’t I don’t know why?

UPROPERTY(EditAnywhere)
  AActor * volume;                //There is no compile time error

The blueprint is a gamemode class.The playerteleporter is a component.