change convertToTupleObject to perform recursively through child objects