Retrieving values from the datastore key

I have been experimenting with the wonderful Bridge example sketch on my Yun: http://arduino.cc/en/Tutorial/Bridge

It seems straightforward using REST calls to write values to the datastore key, but how does one go about retrieving them?

i.e. it is easy to write a '1' to digital pin 13 using the REST call: http://myArduinoYun.local/arduino/digital/13/1
But how do you go about retrieving this datastore key value elsewhere in the sketch and using it as the condition for an IF statement?

i.e. I want to poll each pin and do some action depending on whether the pin value is '1'.
I have tried Bridge.get() as outlined here: http://arduino.cc/en/Reference/YunGet but this returns a char value which can't be compared in an IF statement. I am surely missing something blatantly obvious here - any suggestions would be greatly appreciated?

char myData[1];

  Bridge.get("D13",myData,1);
 Serial.println(myData[1]);     //currently just gives me a 'V' instead of a number??..
  if (myData[1] == 1)
  {
    Serial.println("success!");
  }

No need retrieving values from the data store key via Bridge

Analog pin read:

int analogPin = 3;     // potentiometer wiper (middle terminal) connected to analog pin 3
                              // outside leads to ground and +5V
int val = 0;           // variable to store the value read

void setup()
{
  Serial.begin(9600);          //  setup serial
}

void loop()
{
  val = analogRead(analogPin);    // read the input pin
  Serial.println(val);             // debug value
}

Digital pin read:

int ledPin = 13; // LED connected to digital pin 13
int inPin = 7;   // pushbutton connected to digital pin 7
int val = 0;     // variable to store the read value

void setup()
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin 13 as output
  pinMode(inPin, INPUT);      // sets the digital pin 7 as input
}

void loop()
{
  val = digitalRead(inPin);   // read the input pin
  digitalWrite(ledPin, val);    // sets the LED to the button's value
}