Return the correct data type when calling getDataAt