# Type Conversion Built-ins

| Function | Description | Meta |
| --- | --- | --- |
| `to_number` | `num := to_number(x)`  Converts a string, bool, or number value to a number: Strings are converted to numbers using `strconv.Atoi`, Boolean `false` is converted to 0 and `true` is converted to 1.  **Arguments:**  `x` (any<null, boolean, number, string>)  value to convert  **Returns:**  `num` (number)  the numeric representation of `x` | Wasm |