fixing weird ClassCastException
Merge pull request #599 from davidmsibley/master

fixing weird ClassCastException