How to instantiate object and put it in variable?

I want to instantiate prefab and then put this prefab(clone) to a variable.

Please help, thanks.

GameObject myVar = GameObject.Instantiate(myPrefab) as GameObject;