Misc/Moelang.md
... ...
@@ -53,4 +53,10 @@ module Complex
53 53
54 54
operator["+"] -> Complex()
55 55
end
56
+```
57
+# Type casting
58
+You put type and then the value to be cast:
59
+```
60
+Complex {re=1.0, im=2.0} // cast anonymous struct to Complex
61
+Float 3 // cast integer 3 to Float
56 62
```
... ...
\ No newline at end of file