Pass in enum type as a parameter.