--- a/net/minecraft/world/entity/animal/camel/Camel.java
+++ b/net/minecraft/world/entity/animal/camel/Camel.java
@@ -145,7 +145,7 @@
     protected void customServerAiStep() {
         this.level().getProfiler().push("camelBrain");
         Brain<?> brain = this.getBrain();
-        brain.tick((ServerLevel)this.level(), this);
+        ((Brain<Camel>)brain).tick((ServerLevel)this.level(), this);
         this.level().getProfiler().pop();
         this.level().getProfiler().push("camelActivityUpdate");
         CamelAi.updateActivity(this);
