set int to enum