Get controlled pawn not working

I have a GetControlledPawn node inside of a AI controller which always returns NULL despite clearly controlling an actor in game. How do I get around this?

The example attached always prints Cast failed in game when the pawn the AI is controlling is of type BaseCharacter_BP.

Closed and opened the editor and it fixed the problem.