# Editor.DragData.OfType

## Overload 1

```csharp
IEnumerable<T> OfType()
```

Helper for finding instances of type `T` in [Editor.DragData.Object](/api/Editor.DragData/Object).
Will find matches if [Editor.DragData.Object](/api/Editor.DragData/Object) is of type `T`, is
an `T:System.Collections.IEnumerable` with `T` items, or a [Sandbox.SerializedObject](/api/Sandbox.SerializedObject)
with `T` targets.

### Returns

`IEnumerable<T>`

## Overload 2

```csharp
IEnumerable<object> OfType(System.Type type)
```

Helper for finding instances of type `type` in [Editor.DragData.Object](/api/Editor.DragData/Object).
Will find matches if [Editor.DragData.Object](/api/Editor.DragData/Object) is of type `type`, is
an `T:System.Collections.IEnumerable` with `type` items, or a [Sandbox.SerializedObject](/api/Sandbox.SerializedObject)
with `type` targets.

### Parameters

- `type` (`System.Type`)

### Returns

`IEnumerable<object>`

Declared in [Editor.DragData](/api/Editor.DragData).
Assembly: `Sandbox.Tools`.
