create instance from reflected type

Hi!

I am using reflection to find all derived classes. I want to be able to add instances of classes in editor(im trying to make a behaviour tree), based on classes that are derived from Node class, but I dont know how to use found types for casting. I have tried generics, with the same outcome. Help please!

class Node 
{
	Node node;
}

class ActionNode : Node
{

}

class Test
{
	System.Type[] types;

	Node someNode;

	void Start()
	{
		types = System.Reflection.Assembly.GetAssembly(typeof(Node)).GetTypes();
		foreach(System.Type refType in types)
		{
			if(refType.IsSubclassOf(typeof(Node)))
			{
				someNode = ( ????? )System.Activator.CreateInstance(refType);
			}
		}

	}
}

Convert.ChangeType is your friend here.