Make toInt() a little bit shorter by moving std::underlying_type to a template argument

No feature change.

Bug: b/75328113
Test: build
Change-Id: I262493821da7bb06618680932cf93ec25671cfe4
1 file changed