The Guides that Everynone linked to are no doubt good and would teach you what you need to know, I recommend you read them.
But interfaces would be the ideal way to send data to actor a to actor b, you should avoid hard references if using interface since that is one of their major benefits over casting.
If you won’t avoid hard references then the simplest way is to just use casting (e.g. the cast to node).
An even easier and more efficient possible alternative to both of these, is using tags.
Here’s more about hard and soft references, it can be tricky to wrap your head around.
However ultimately in your case, you just need the actor position. This is an easily accessible value and what you’re doing in your original post is an example of how that could be done, not really sure what the problem could be for you…
This here is an ugly alternative way (mostly because it creates a hard reference, however above video will teach you how to make it a soft reference instead) but easy way to do what you want.