Fixes #12 - Is this safer?

Read [this](http://stackoverflow.com/questions/4216308/how-do-you-type-cast-char-int-in-scala) thread. Is this better than asInstanceOf?