# TryConvert<TSource, TDestination>(ref TSource, out TDestination)

> Converts the specified value from TSource to TDestination.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## TryConvert\<T, U>(T, T)

```csharp
public static bool TryConvert<TSource, TDestination>(ref TSource source, out TDestination destination)
```

### Parameters

**** (T): The source value to convert.**** (T): When this method returns, contains the converted destination value if the conversion succeeded; otherwise, default.

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the conversion succeeded; otherwise, `false`. |
