How to get the World position of a connectedAnchor? (2d)

If i have ObjectA that has the joint attached to ObjectB, then i would usualy do:
ObjectB.position + joint.connectedAnchor to get its world Position, but this wont work if ObjectB is rotated.

Vector3 jointPos = new Vector3(joint.connectedAnchor.x, joint.connectedAnchor.y, joint.connectedAnchor.z);

Vector3 worldPos = ObjectA.transform.TransformPoint(jointPos); //or ObjectB if B has the joint component

Does this help?