How to access staticmesh->bodysetup?

Body Setup from a static mesh actor

	AStaticMeshActor* MeshActor = ...;
	UBodySetup* BodySetup = MeshActor->GetStaticMeshComponent()->GetBodySetup();

Body Setup from a static mesh

	UStaticMesh* Mesh = ...;
	UBodySetup* BodySetup = Mesh->BodySetup;

All i get is member is inaccessible.

I’m trying to copy the collider data from a static mesh, similarly to this: