First of all, please try to use comments instead of answers
And the assigment does not work because of type incompatability. GetActor() returns a pointer to an actor, while your EActor is not a pointer but a regular object. Either use the assignment as is after dereferencing the pointer on the right side or change your EActor to type pointer of AEnemyActor. I recommend the latter.