Could not find a function named..., error. From macro library

I made a macro library in which i made a macro. At one point the macro casts an actor to a Plane and if the cast succeeds I call my BulletHit event on the Plane.
If I call this macro from any other class but the Plane, it works fine. But if I call my macro from a Plane I get the following error:
Error Could not find a function named “BulletHit” in ‘Plane_C’.
Make sure ‘Plane_C’ has been compiled for BulletHit

???

The way I solved this ridiculous problem, was by making an interface with a “BulletHit” function and then I had my Plane inherent the function from the interface.
Then instead of casting to the Plane in my macro library I cast to the interface and the error is no more.