Fix object cast for default hidden fields.