Use CastException for all errors (rather than multiple exception types)