MoveTo task: How to move to player's location at any given location they are at

@MieszkoZ but what if I want to create a custom behaviour tree task with “move to” and character references? It does not accept object references, casting to the character blueprint from the object pin is not working also.