remove unnecessary castings. proper (newer) annotations import
remove unnecessary castings and initializations. small general code refactoring
Merge pull request #4 from sourcecod/master

minor code refactoring