Changing binominal attribute to numeric
I am wondering if there is any way in Rapidminer to change the type of an attribute from binominal/polynominal to a numeric value.
For example: if I have an attribue called Sex, taking two values: "Male" or "Female".
I want to change the type of this attriube to, let's say an integer value, taking 1 for "Male" and 2 for "Female".
** I tried using MAP operator. It changed the value; however, not the type. So, "Male" has been changed to "1" as a string, not 1 as an integer.
If all possible, how to perform such an operation in Rapidminer?