Extract numerical category from a Classification object