Identical Casts: one works; one doesn't

I see the AActor * GetOwner() const syntax in the documentation. I am unclear on how to implement this. And on a understanding level. I thought that the point of casting was that that step is what found and linked the character in the world to the variable.