--- a/net/minecraft/world/entity/animal/allay/Allay.java
+++ b/net/minecraft/world/entity/animal/allay/Allay.java
@@ -139,7 +139,7 @@
 
     @Override
     public Brain<Allay> getBrain() {
-        return super.getBrain();
+        return (Brain<Allay>)super.getBrain();
     }
 
     public static AttributeSupplier.Builder createAttributes() {
