Convert IDs to classes.