How do i call a function held by an actor returned from a FHitResult?

So I am receiving an actor via a FHitResult with GetActor().

I want to call a function, that is public inside that Actor, how can I do it?
In the .h:

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

  void Show();

In the .cpp of a different actor:

GWorld->LineTraceSingleByChannel(TraceResult,
                                     Start,
                                     End,
                                     ECC_Camera,
                                     TraceParams);

TraceResult.GetActor()->Show();

You need to Cast the Actor from the FHitResult to your Actor type:

 GWorld->LineTraceSingleByChannel(TraceResult,
                                      Start,
                                      End,
                                      ECC_Camera,
                                      TraceParams);

AYourActor* yourActor = Cast<AYourActor>(TraceResult.GetActor());
if (yourActor  != nullptr)
{
    // it is a AYourActor insance
    yourActor->Show();
}
else
{
    // The trace hit some other actor object.
}