Get rid of a cast in DataObject.cpp. Also removed a dangling function prototype