Made sure that DataObjects are of same type