Use enum typers instead of int.