converting data in an array after a wireless transmission

Thanks, i tried this. I get an error compiling when I try to put an int directly into the Mirf.send function. I found another post on converting array into int. Its ugly but it works. I did not realize there was a auto format tool. I will use it from now on. Thanks for the pointer.

char buffer[3];
  buffer[0] = rec[0];
  buffer[1] = rec[1];
  buffer[3] = '\0';
  int  n;
  n = atoi(buffer);

  Serial.println(n);