safeCast for char, int
Merge pull request #23 from algoriddle/master

safeCast for char, int