title: Cast String to List<NameValuePair>
body: <p>I'm basically trying to pass a <code>List&lt;NameValuePair&gt;</code> to an external class that handles POST HTTPRequest on an Android app.</p>
  
  <pre><code>String[] args = new String[]{"http://url/login", nameValuePairs.toString()}; //nameValuePairs is a param list to send via POST
          Log.i("params", nameValuePairs.toString());
          try {
              String text = new rest().execute(args).get();
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (ExecutionException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  </code></pre>
  
  <p>The doInBackgroud of the ASyncTask receives two parameters (the url for the request and the result of nameValuePairs.toString()), and I cannot find a way to convert the string back to a List&lt; NameValuePair >.</p>
  
  <p>Any ideas?</p>