remove double cast (const char*)(char*)