Use Gwt safe casts and ClassReflection methods
Merge pull request #31 from Tom-Ski/master

Use Gwt safe casts and ClassReflection methods