How can I transform object reference to actor object reference or is thera a another solution for this?

I can’t use attachtocomponent because I guess new version doesn’t have that. Therefore, I am trying to use attachactortocomponent instead of it but it says you can’t do it because Object reference is not competible with actor object reference

You can just cast it to an actor. Inside the macro would make sense…