How to convert color data to string and back?

 
I wrote code:

//+------------------------------------------------------------------+
//| ObjectsSave.mq4 |
//| Rafael |
//| marynarz15@wp.pl |
//+------------------------------------------------------------------+
#property copyright "Rafael"
#property link "marynarz15@wp.pl"

//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
int handle;
int obj_total=ObjectsTotal();
handle = FileOpen("ObjectsSave.csv",FILE_CSV|FILE_WRITE,";");
if(handle>=1)
{
string name, time1, price1, time2, price2, linewidth;
color linecolor;
for (int i=0;i<obj_total;i++)
{
name = ObjectName(i);
if (ObjectType(name)==OBJ_TREND)
{
time1=ObjectGet(name,OBJPROP_TIME1);
price1=ObjectGet(name,OBJPROP_PRICE1);
time2=ObjectGet(name,OBJPROP_TIME2);
price2=ObjectGet(name,OBJPROP_PRICE2);
linewidth=ObjectGet(name,OBJPROP_WIDTH);
linecolor=ObjectGet(name,OBJPROP_COLOR);
FileWrite(handle,name,time1,price1,time2,
price2,linewidth,linecolor);
}
}
FileClose(handle);
}

return(0);
}
//+------------------------------------------------------------------+

and linecolor has value 255 when wrote to a csv file.
Is there any function to convert color data to string or integer and convert back from string/integer to color? I haven't found any...

Regards
Rafael
 
strinf arrColorNames[];
arrColorNames[0] = "black";
...

Then Print(arrColorNames[nColor]);
you will get "black".