El antiguo:
unsigned long ms = (unsigned long) rix[1];
El nuevo:
unsigned long ms = static_cast<unsigned long>(rix[1]);