# implicit operator PhysicsJoint

> Cast to the base PhysicsJoint.

## Definition

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

## implicit operator PhysicsJoint(PhysicsJoin)

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

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

### Parameters

**** (\[PhysicsDistanceJoint]\(/engine/6000.7/script-reference/unity/u2d/physics/physicsdistancejoint)): The current joint.

### Returns

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

## implicit operator PhysicsDistanceJoint(PhysicsDistanceJoin)

Cast to a [PhysicsDistanceJoint](/engine/6000.7/script-reference/unity/u2d/physics/physicsdistancejoint.md) from the base [PhysicsJoint](/engine/6000.7/script-reference/unity/u2d/physics/physicsjoint.md). The provided joint must be a joint type of [PhysicsJoint.JointType.DistanceJoint](/engine/6000.7/script-reference/unity/u2d/physics/physicsjoint/jointtype/distancejoint.md).

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

### Parameters

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

### Returns

| Type                                                                                              | Description |
| ------------------------------------------------------------------------------------------------- | ----------- |
| [PhysicsDistanceJoint](/engine/6000.7/script-reference/unity/u2d/physics/physicsdistancejoint.md) |             |
