Please review this fix of an incorrect cast. This fix was contributed by Timo Kinnunen. CR: https://bugs.openjdk.java.net/browse/JDK-8150426 Webrev: http://cr.openjdk.java.net/~kbarrett/8150426/webrev/