ArgumentException thrown if type arg is not an Enum