Remove yet another cast from DataObject.cpp