I guess you have to rewrite you Data model class, try extending and rewriting the AbstractDataModel class,you can also try using IDMigrator control which is provided in the framework to convert your string to integer value.
Go through this topic- Mahout : To read a custom input file