Change UCameraComponent Position

I have a camera in FPCharacter.h

UPROPERTY(EditAnywhere, Category = "Camera")
		UCameraComponent* cam;

that is being setup with the following in the .cpp file

cam=CreateDefaultSubobject<UCameraComponent(TEXT("CameraComponent"));

But how do I get and set it in a different .cpp file.
I have the following in SaveManager.cpp

SaveGameInstance->playerPos = getcameraposition 
setcameraposition = SaveGameInstance->playerPos

I was close with GetRelativePosition(), where the compiler wouldn’t catch anything wrong, but unreal would crash once it actually ran that part of the code.