Adding explicit cast to enable compilation with Java 1.6 jdk.