System.Type does not denote a valid type

Hey guys, here's my issue:

function Resize(ar : Object[], tType : System.Type, iSize : int) : Object[]
{
   ar = new tType[iSize];//Compiler Error: BCE0018: The name 'tType' does not denote a valid type ('not found').
   return ar;
}

Clearly the body of the function is not properly written, but what would I need to do to have the desired result happen? "new Type[]"? I'm using Javascript.

See System.Array.CreateInstance.

function CreateArray(type : System.Type, size : int) : System.Object[] {
    return System.Array.CreateInstance(type, size);
}