Enable conversion of enum to number