title: How to convert type var into type string
body: <p>This is my code, </p>
  
  <pre><code> var getURL = tc.provideCreden("location/", "42.3", "-71.06");
  </code></pre>
  
  <p>This gives a <code>var</code> value. I want to convert this into <code>string</code> to use with my another method.</p>
  
  <p>That means,</p>
  
  <pre><code>var getReviews = getRe("this is a string");
  </code></pre>
  
  <p>I want to use <code>getURL</code> value as this string. How can I do that?</p>
  
  <p>this is my first method <strong>provideCreden()</strong></p>
  
  <pre><code>  public dynamic provideCreden(string subUrl, string Latitude, string Longitude)
          {
              string fullURl = BaseUrl + subUrl + apiKey;
              WebClient tripClient = new WebClient();
              var finalResult = tripClient.DownloadString(fullURl);
  
              RootObject obj = JsonConvert.DeserializeObject&lt;RootObject&gt;(finalResult);
              var final = obj.Data
                          .Where(s =&gt; s.latitude == Latitude &amp;&amp; s.longitude == Longitude)
                          .Select(n =&gt; n.Apidetailurl);
  
              return final;
          }
  </code></pre>
  
  <p>this method return <strong><a href="http://api.somevalue.com/api/partner/2.0/localized/" rel="nofollow">http://api.somevalue.com/api/partner/2.0/localized/</a></strong> this. then when I convert this using ToString() it gives <strong>System.Linq.Enumerable+WhereSelectListIterator`2[some.Item,System.String]</strong></p>
  
  <p>so I want the this <strong><a href="http://api.somevalue.com/api/partner/2.0/localized/" rel="nofollow">http://api.somevalue.com/api/partner/2.0/localized/</a></strong> as the value.becaue I want to use it in another method.</p>