# TryConvertToULong(SearchItem, out ulong)

> Resolve a selector on an item and try to convert the selected value to a ULong.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## TryConvertToULong(SearchItem, ulong)

```csharp
public static bool TryConvertToULong(SearchItem item, out ulong value)
```

### Parameters

**** (\[SearchItem]\(/engine/6000.6/script-reference/unityeditor/search/searchitem)): **** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
