Convert a labelled vector to a factor, even if it doesn't have the proper
class, as long as it has the "labels" attribute.
You can have this attribute without, for example, the haven_labelled class,
when importing data with rio::import() for example.