Why do the Cast Fail ?


i´am trying to to cast from my wall actor (Pic 1) to my Ai Char (Pic 2) but the string prints that its always fails.

I try to get a door open when the “endboss Ai” health is >= 0 but the Cast to the Ai doesn´t success.

Do anybody knows what am I doing wrong? or is there an other way ?