Reversing an if check in getRules, bugfix
Updating custom rules to use new Cast class handling
Moving Operations over to new Cast handling
Adding new Cast handling to Operation class, removing duplicate methods
Moving the Rule class over to new Cast handling
Adding new Cast class
Fixing tests for new Cast handling