convert: don't mix enum with int