Cell and feature names on AnnData objects are Python pandas Indexes; R's `rownames()`/`colnames()` do not return them reliably. This helper coerces them to character vectors via Python's `list()` builtin, falling back to `names()` if that path fails.