WorldTimeCondition throws ClassCastException

Summary

Worldtime conditions cause errors to be spammed in the console.

Steps to reproduce

  1. Create a mob with a worldtime condition, like this:
RandomWorldTimeTest:
  Type: Testers
  Worlds: world
  Chance: 1
  Priority: 1
  PositionType: LAND
  Action: ADD
  Conditions:
  - worldtime{t=2000to10000} true
  1. Keep an eye on the console and see the errors

Current behavior

The console gets spammed with errors about the worldtime condition: https://pastebin.com/zr8eumrA

Intended correct behavior

There shouldn't be any errors being thrown about it, since the configuration is correct.

Server log file

https://pastebin.com/xAxjeSUP

Debug log snippet

https://pastebin.com/YyHKiyT0