# GetYarnValue(IConvertible)

Method in [Utility](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.utility)

## Summary

Returns an [IYarnValue](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.iyarnvalue) representation of the provided value.

```csharp
public static IYarnValue? GetYarnValue(IConvertible clrValue)
```

## Parameters

| Name                           | Description                                |
| ------------------------------ | ------------------------------------------ |
| `System.IConvertible` clrValue | The value to get a Yarn representation of. |

## Returns

An [IYarnValue](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.iyarnvalue) representation of `clrValue` .
