OPENJPA-2600 add cast which is needed for Java8 Java8 fails do properly coerc the method calls if we don't 'hint' it to the right ParameterizedType.