How to get access to a component on the character from AI controller

HI,
I have a scene component attached to a character and I want to get access to it through the AI controller C++. How would I do this?

I have tried casting like AIBaseCharacter* OwnerPawn = Cast(GetOwner()); But it returns a nullptr

Thank you

I was right with the casting however instead of GetOwner, I should have done GetPawn