# ConvertToString<T>(ref T)

> Returns a copy of this string as a managed string.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## ConvertToString\<T>(T)

```csharp
[ExcludeFromBurstCompatTesting("Returns managed string")]
public static string ConvertToString<T>(this ref T fs) where T : unmanaged, INativeList<byte>, IUTF8Bytes
```

### Parameters

**** (T): A string to copy.

### Returns

| Type                                                           | Description                                |
| -------------------------------------------------------------- | ------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A copy of this string as a managed string. |
