Help with converting a sting of chars to an int via toInt().

                        for (int i = 0; i < 2; i++){
                                Serial.write(IncomingDir[i]);  
                        }

Or

Serial.print(incomingDir);

It would be incredibly handy to convert MotorVal to an int

Like atoi() does?