--- a/net/minecraft/util/datafix/ExtraDataFixUtils.java
+++ b/net/minecraft/util/datafix/ExtraDataFixUtils.java
@@ -66,7 +66,7 @@
         if (p_331265_ instanceof Dynamic dynamic) {
             return asBoolean(dynamic);
         } else {
-            return p_331265_ instanceof OptionalDynamic optionaldynamic
+            return p_331265_ instanceof OptionalDynamic<?> optionaldynamic
                 ? optionaldynamic.get().flatMap(ExtraDataFixUtils::asBoolean)
                 : DataResult.error(() -> "Unknown dynamic value: " + p_331265_);
         }
