Modify animation sequences in Editor Utility Blueprint

I am new to UE.
I have some animation blueprint assets, and I want to make a tool script to modify the animation sequences in the animation blueprint, But I encountered some problems when getting the animation blueprint. I tried Cast To Blueprint, but it kept failing. Do I What’s wrong?

This is my blueprint.