> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/methods/types.md).

# Types & Conversion

These methods work on **any** value, regardless of its type - converting between types, copying, dynamic access and runtime assertions.

```javascript
log "42".toNum()         // 42
log [1, 2, 3].clone()    // independent copy
log [1, 2, 3].len        // 3 (property - no parentheses)
```

## In this section

* [**Conversion**](/methods/types/conversion.md) - `toStr`, `toNum`, `toInt`, `toBool`, `toArray`, `toObject`, and the `len` property.
* [**Utility**](/methods/types/utility.md) - `clone`, `item`, `reverse`, `call`, `match`, and the advanced `assert` / `assertElse` runtime casts.

> To get a value's **type name**, use the [`typeof(value)`](/builtins/builtins.md) function. The [`result`](/packages/utilities/result.md) and [`option`](/packages/utilities/option.md) types have their own methods (`isOk`, `unwrap`, …) documented with their packages.
