Revert "Fix ClassCastException in  sample app"
Merge pull request #6 from 03uk/revert-4-master

Revert "Fix ClassCastException in  sample app"