HHH-9100 - Improve CAST function support
Applying advice from Peter in regards to http://forums.gradle.org/gradle/topics/gradle_hangs_indefinitely_in_testclasses_ci