Cast to int for union tag Union tag will be changed from `enum` to `enum class`. We need explicit casting with enum class. Bug: 218912230 Test: m Change-Id: If803fa871817261109151ba10f7552f7e37c805b