Sparkfun Digital QRE1113. Can this be used as on/off switch?

These sensors are made to use on digital pins and receive similar readings to analog ones
http://bildr.org/2011/06/qre1113-arduino/

My goal is to use these as ON/OFF switch. Is it possible to program them to return HIGH when there is reflectance and LOW when the surface is dark.
So without all this calculating time to discharge the capacitors.
I have used the analog versions of these sensors in the project so far but I would like to eliminate dealing with thresholds.

Is it possible to program them to return HIGH when there is reflectance and LOW when the surface is dark.

write a wrapper around the analogRead

int isReflective(int pin)
{
  int raw = analogRead(pin);
  if (raw > 500) return HIGH;
  return LOW;
}