How to get/set an anim blueprint variable from a class blueprint without casting on a specific anim blueprint , but a variable type anim blueprint?

How to get/set an anim blueprint variable from a class blueprint without casting on a specific anim blueprint , but a variable type anim blueprint?