The “TryGetPawnOwner” seems to return a const pointer.
Either you can modify the function TryGetPawOwner to return a non-const pointer, or you may try to do “const_cast<ABaseCharacter*>(TryGetPawnOwner())”, though the latter option is not particularly nice code.