const_cast the getData method to silence warning about how terrible we are