store gameobject of collision

How would I take an object that a collider collides with and store it in a variable or use it again.

function OnCollisionEnter(collided : Collision){
if(collided.gameObject.tag == "Weapon"){
PickUp();
}
}

PickUp() is a function and I would like to use the object that that collided and has the tag weapon in the parentheses of PickUp() and also debug its name.

var savedTransform : Transform = collided.transform

savedTransform needs to declared outside of a function so that the variable is not lost when the function is exited (just to be clear).