Remove casts that are no longer required now that get_params() has been moved to Model.