Erroneous "cast would always fail" warning

This workaround doesn’t fix the issue for me.
I cast to the child class from the parent CastTo node and I have the “child does not inherit from parent” warning message, even if I cast from a var referencing the parent actor instead.