# IOpcDataTypeMapper Members

> Reference: Provides mechanims to map an object of a specific type to another type and back.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">IOpcDataTypeMapper</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Methods

### Convert

Converts the `source`[object](https://learn.microsoft.com/dotnet/api/system.object) to a specific type.

<div class="api-signature" data-lang="csharp">

```csharp
object Convert(object source, IFormatProvider provider)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Function Convert(source As Object, provider As IFormatProvider) As Object
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `source` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The `source`[object](https://learn.microsoft.com/dotnet/api/system.object) to convert. |
| `provider` | [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) | The [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) to control any formatting which may be necessary for the convertion. |

**Returns**

[Object](https://learn.microsoft.com/dotnet/api/system.object)

The converted [object](https://learn.microsoft.com/dotnet/api/system.object) determined through the `source`[object](https://learn.microsoft.com/dotnet/api/system.object) and the `provider` specified.

### ConvertBack

Converts the `target`[object](https://learn.microsoft.com/dotnet/api/system.object) to the type from which the value has been created.

<div class="api-signature" data-lang="csharp">

```csharp
object ConvertBack(object target, IFormatProvider provider)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Function ConvertBack(target As Object, provider As IFormatProvider) As Object
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `target` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The `target`[object](https://learn.microsoft.com/dotnet/api/system.object) to convert back. |
| `provider` | [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) | The [IFormatProvider](https://learn.microsoft.com/dotnet/api/system.iformatprovider) to control any formatting which may be necessary for the convertion. |

**Returns**

[Object](https://learn.microsoft.com/dotnet/api/system.object)

The source [object](https://learn.microsoft.com/dotnet/api/system.object) from which `target` has been created.
