Casting from AnimBP, to PlayerChar, not working

I am trying to make a weapon switch mechanisme. The animations does not switch with the weapons. I am switching the weapon and the int for the blend poses by int, and trying to get them, but when i cast it from the animBP it returns 0, even though i have have checked that it gets the right playerBP, it does not get the right value from the Player. I thought this problem accured because i only casted once, but it dosent seem to chance when i do it every frame. Can someone help?