Create value_for method to return the value of an enum