How do i use CallFunctionByNameWithArguments with AActor parameter?

Hello, i know how to use CallFunctionByNameWithArguments with basic parameters (int, float, bool), but how do i call a blueprint function from C++ that has an Actor has a parameter? Thank you.

After some experimentation i found the way to do it:

FOutputDeviceNull ar;
const FString command = FString::Printf(TEXT("FunctionName %s"), *Actor->GetName());
OtherActor->CallFunctionByNameWithArguments(*command, ar, NULL, true);