> For the complete documentation index, see [llms.txt](https://smllang.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smllang.gitbook.io/home/basics/type-casting.md).

# Type casting

Casting from type to type

Type conversion is a useful feature to have in a programming language and SMLL is no different. To cast from type A to B use the as keyword.&#x20;

```ocaml
(1 + 1) as Float 
200.5 as Int
"200" as Int
"10.500" as Double 
```
