C++ Cast NPC Character into Player Character

I’m really not sure what exactly you want to achieve.
How I understand what you want…
On Button Press you want to interact with an NPC.
And the Interaction is defined inside the NPC.

What I would do:
-On Button Press-> Get all overlapping actors of class npc / use traces to get the npc (depends on your System)
-Use the NPC reference to call your function