title: Convert a class into an array
body: <p>I have a <em>DisplayedData</em> class ...</p>
  
  <pre><code>  public class DisplayedData
    {
      private int _key;
      private String _username;
      private String _fullName;
      private string _activated;
      private string _suspended;
  
  
      public int key { get { return _key; } set { _key = value; } }
      public string username { get { return _username; } set { _username = value; } }
      public string fullname { get { return _fullName; } set { _fullName = value; } }
      public string activated { get { return _activated; } set { _activated = value; } }
      public string suspended { get { return _suspended; } set { _suspended = value; } }
    }
  </code></pre>
  
  <p>And I want to to put the objects from this class into an array where all objects inside of this class should be converted into an String[]</p>
  
  <p>I have..</p>
  
  <pre><code>DisplayedData _user = new DisplayedData();
  String[] _chosenUser = _user. /* Im stuck here :)
  </code></pre>
  
  <p>or can I create an array where all the items inside are consist of variables of  different datatype so that the integer remains an integer and so the strings too?</p>