(__open_catalog): Add casts to avoid warnings.