Trace dataType?

I am trying to run an if statement based on the a variables datatype

var theArray:Array = [‘element1’,‘element2’}];
var theString:String = “I am string”;

trace(gettype(theArray));

// In php gettype() is what I use to get the type. Is there a similar function in as3?