Switch to enum

closes #4349