- update examples, update comments

- add another Switch example
- add more complex func example
- fix playground error
- add another casting example