# implicit operator T

> Implicitly converts a UnityObjectRef to the UnityEngine.Object it references.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.CoreModule

## implicit operator T(UnityObjectRef\<T>)

Implicitly converts a UnityObjectRef to the UnityEngine.Object it references.

```csharp
public static implicit operator T(UnityObjectRef<T> unityObjectRef)
```

### Parameters

**** (\[UnityObjectRef\<T>]\(/engine/7000.0/script-reference/unity/entities/unityobjectref1)): Reference used to access the Object.

### Returns

| Type | Description                                          |
| ---- | ---------------------------------------------------- |
| T    | The instance of type T referenced by unityObjectRef. |

## implicit operator bool(Boolea)

Checks whether the reference points to a valid object.

```csharp
public static implicit operator bool(UnityObjectRef<T> obj)
```

### Parameters

**** (\[UnityObjectRef\<T>]\(/engine/7000.0/script-reference/unity/entities/unityobjectref1)): The reference to check.

### Returns

| Type                                                          | Description                                        |
| ------------------------------------------------------------- | -------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the referenced object's EntityId is valid. |
