clean code
Merge pull request #39 from otaviojava/clean_code

Removed some unnecessary cast and Array creation.