# `Hush.Transformer.Cast`
[🔗](https://github.com/gordalina/hush/blob/v1.3.0/lib/hush/transformer/cast.ex#L1)

Utility functions to cast strings to Elixir native types

# `to!`

```elixir
@spec to!(:string, String.t()) :: String.t()
@spec to!(:atom, String.t()) :: atom()
@spec to!(:charlist, String.t()) :: charlist()
@spec to!(:float, String.t()) :: float()
@spec to!(:integer, String.t()) :: integer()
@spec to!(:boolean, String.t()) :: boolean()
@spec to!(:module, String.t()) :: module()
```

Cast a string to any type.
An error is raised on failure.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
