Revert "Inserts casts to work with Groovy 2.3 and JDK8"

This reverts commit c2143cc8d092bb8ef128cea9ad394520208cc061.

See http://jira.codehaus.org/browse/GROOVY-6627