Fix cast class exceptions for Int conversations.

Character, Short and Byte (proper with capitalizations)
do not directly cast properly to Integer. The code now
properly casts and uses the helper methods provided
by the classes to convert it to an int (which is cleanly
cast seemlessly to Integer).
Merge pull request #16 from strazzere/master

Fix cast class exceptions for Int conversions.