All these casts are a bit smelly.