title: Adobe Flex: Cannot Convert XMLList to mx.collections.IList
body: <p>My Flex app runs a service to a php page that pulls data from my database, then structures the result in an XML format. I created a new XMLList called <code>testList</code> outside of any functions, then when the results come back (they first come to flex as a single string holding all of the XML code) I have the following code to turn it into XML and then append to my testList:</p>
  
  <blockquote>
    <p>var s:String = event.result as String;<br>
    var xml:XML = new XML(s);<br>
    testList = xml.user;</p>
  </blockquote>
  
  <p>The data is used in one function, then it's also passed to a component of mine, where I try to display the XMLList in a List (with testList as dataProvider) and I get the following error:</p>
  
  <p>TypeError: Error #1034: Type Coercion failed: cannot convert XMLList@68ffa01 to mx.collections.IList.</p>
  
  <p>I have a feeling it's probably a noob error, but any help is appreciated.</p>