local_utils: add CastEnumToInteger() am: 9cfc0379b0 am: 9843969c90
am: 90912c64a0

Change-Id: Ieb970a01069cb09d7e032c420f0c7fad603ad96d