Prevent ArrayStoreExceptions when converting Enums to Int array

We have to create another array so we guarantee there are no mixed
types.