remove useless cast for enums, all enum constants for registers are signed