c# -How to put items from a List<string> to List<object>
<p>I'm trying to put all the items from a list of type string into a list of type object.</p>

<p>Here is my class :</p>

<pre><code>public class Object
{
    public string url;
    public bool case;
    public void Add(string item)
    {
        url = item;
    }
}
</code></pre>

<p>I have tried the following (something is the list of type string from which i'm trying to add elements to my new list of type object) :</p>

<pre><code>List&lt;Object&gt; finals = something.OfType&lt;Object&gt;().ToList();
</code></pre>

<p>and</p>

<pre><code>List&lt;Object&gt; finals = new List&lt;Object&gt;(); 
foreach(var item in something)
{
    finals.Add(item);
}
</code></pre>

<p>What I want is to have "url" from my object class to be equal with each element from the List and "case" to be set as false for all of them. </p>

<p>I hope I was clear enough. Thanks in advance !</p>