Option to serialize enum as int