Joints for connecting tubing to casing