How do I find the parent GameObject of a Transform?

For example I am iterating through a transforms children and I want to fill out an array of gameobjects..(obviosuly child.parent doesnt work)

for(var child :Transform  in instanced.transform)


I'm not quite sure what you want to accomplish, but if you just want to get at the GameObject associated with the transform, just use `productArray[count] = child.gameObject;`

Removed because it was really misleading...