fix invalid cast
Merge branch 'master' of github.com:grails/grails-data-mapping