Convert incoming bytestream into integers and export to excel Arduino/C : I am very new to programming and am working on an Arduino project to measure wavelengths of light. I am using the Spectruino 3 (http://myspectral.com/spectruino-installation.html) and am trying to read in the bytes that it records into an array, convert the array into an integer array and then export that data to excel. Currently I have this:

    const int numBytes = 501;
    int bytestream[numBytes]; 
    
    void setup(){
      Serial.begin(115200);
    }
      
    void loop() {
      for(int i=0; i<numBytes; i++){
        bytestream[i]=Serial.read();  
      }
    }

My spectrometer currently doesn't work, but this seems to compile. I was just wondering how to convert this bytestream array into an integer array and then export it into excel. Thanks!