# implicit operator PhysicsJoint

> Cast to the base PhysicsJoint.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## implicit operator PhysicsJoint(PhysicsJoin)

Cast to the base [PhysicsJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsjoint.md).

```csharp
public static implicit operator PhysicsJoint(PhysicsRelativeJoint joint)
```

### Parameters

**** (\[PhysicsRelativeJoint]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejoint)): The current joint.

### Returns

| Type                                                                              | Description |
| --------------------------------------------------------------------------------- | ----------- |
| [PhysicsJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsjoint.md) |             |

## implicit operator PhysicsRelativeJoint(PhysicsRelativeJoin)

Cast to a [PhysicsRelativeJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejoint.md) from the base [PhysicsJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsjoint.md). The provided joint must be a joint type of [PhysicsJoint.JointType.RelativeJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsjoint/jointtype/relativejoint.md).

```csharp
public static implicit operator PhysicsRelativeJoint(PhysicsJoint joint)
```

### Parameters

**** (\[PhysicsJoint]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsjoint)): The base joint to cast.

### Returns

| Type                                                                                              | Description |
| ------------------------------------------------------------------------------------------------- | ----------- |
| [PhysicsRelativeJoint](/engine/6000.6/script-reference/unity/u2d/physics/physicsrelativejoint.md) |             |
