# As<T>()

> Return the specified geometric shape stored inside this Geometry Holder object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics](/engine/6000.5/script-reference/unityengine/lowlevelphysics.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public T As<T>() where T : struct, IGeometry
```

### Returns

| Type | Description                                                              |
| ---- | ------------------------------------------------------------------------ |
| T    | Returns the basic geometric shape which is stored in the GeometryHolder. |

### Remarks

This function throws an InvalidOperationException if you try to request a geometric shape that is not stored in the GeometryHolder.

In the case of [CapsuleGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/capsulegeometry.md), when Unity retrieves the shape from a [CapsuleCollider](/engine/6000.5/script-reference/unityengine/capsulecollider.md) component, the [CapsuleCollider.direction](/engine/6000.5/script-reference/unityengine/capsulecollider/direction.md) is not included. For this reason, you should assume the direction is always along the X axis.

Additional Resources: [BoxGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/boxgeometry.md), [SphereGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/spheregeometry.md), [CapsuleGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/capsulegeometry.md), [ConvexMeshGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/convexmeshgeometry.md), [TriangleMeshGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/trianglemeshgeometry.md), [TerrainGeometry](/engine/6000.5/script-reference/unityengine/lowlevelphysics/terraingeometry.md).
