This is how natural is defined 
[http://nim-lang.org/docs/system.html#Natural](http://forum.nim-lang.org///nim-lang.org/docs/system.html#Natural)
 it is only a range. Ranges are typed checked both on runtime and compile time. 
It means that, if you try to use a non-natural number, it won't compile, or 
will throw an exception on runtime, but you don't have to do anything in 
special (no casting needed). You only have to feed it with 0+ integers. 
[Example](https://glot.io/snippets/ehijl0iq6d)

Reply via email to