Using GetOwner() in component to get parent location

Hello i have a UActor component and need to know its parent’s location in scene for some distance calculations.
i have this:

AActor* myBoss = GetOwner();
	myBoss->GetActorLocation();

but it says that the pointer to imcomplete class its not allowed.

You need to include the header for AActor:

#include "GameFramework/Actor.h"