# GH_DirtyCaster class

Namespace: [Grasshopper.Kernel.Data](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.data.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
[EditorBrowsable(EditorBrowsableState.Never)]
public sealed class GH_DirtyCaster
```

## Methods

- [CastToList<T>](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-dirtycaster/casttolist.md): (static) Dirty cast a List(Of GH_ScriptVariable) to a List(Of T), where T is the GH_ScriptVariable.Type.
- [CastToTree<T>](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.data.gh-dirtycaster/casttotree.md): (static) Dirty cast a GH_Structure(Of GH_ScriptVariable) to a DataTree(Of T), where T is the GH_ScriptVariable.Type.
