# CVar
{: .no_toc }

Coerces an expression to a **Variant**.

Syntax: **CVar(** *expression* **)**

*expression*
: *required* Any valid expression. The acceptable range is the same as **Double** for numerics, and the same as **String** for non-numerics.

The return type is **Variant**.

### Example

This example uses the **CVar** function to convert an expression to a **Variant**.

```tb check_build
Dim MyInt, MyVar
MyInt = 4534                             ' MyInt is an Integer.
MyVar = CVar(MyInt & 000)                ' MyVar contains the string "4534000".
```

### See Also

- [CBool](/tB/Modules/Conversion/CBool.md), [CByte](/tB/Modules/Conversion/CByte.md), [CCur](/tB/Modules/Conversion/CCur.md), [CDate](/tB/Modules/Conversion/CDate.md), [CDbl](/tB/Modules/Conversion/CDbl.md), [CInt](/tB/Modules/Conversion/CInt.md), [CLng](/tB/Modules/Conversion/CLng.md), [CSng](/tB/Modules/Conversion/CSng.md), [CStr](/tB/Modules/Conversion/CStr.md) functions
- [CVDate](/tB/Modules/Conversion/CVDate.md), [CVErr](/tB/Modules/Conversion/CVErr.md) functions
