Error trying to access Vertex Positions of static mesh

I’m trying to upgrade a plugin (UnrealCV) from UE4.27 to U5.0 and I’m facing an issue regarding the portion of code where the plugin try to access Vertex Positions of static mesh. The error I get from Visual Studio is:

Error C2440 ‘initializing’ : cannot convert from ‘FVector3f’ to ‘UE::Math::TVector’

This is portion of code where the error is:

			for (uint32 VertexIndex = 0; VertexIndex < PositionVertexBuffer.GetNumVertices(); VertexIndex++)
			{
				FVector Position = PositionVertexBuffer.VertexPosition(VertexIndex);
				VertexArray.Add(Position);
			}

I have been looking for a solution for a while but I’m not able to do that. Where am I wrong?