title: FIND item that CONTAINS specific text
body: <p>I have following class </p>
  
  <pre><code>public class Response
  {
     public Prompts Prompts { get; set; }
  }
  public class Prompts
  {
      public List&lt;Prompt&gt; prompt { get; set; }
  }
  public class Prompt
  {        
      public object message { get; set; }
      public object details { get; set; }
  }
  </code></pre>
  
  <p>I am trying to retrieve message of that <code>prompt</code> whose <code>message</code> contains 'Hello'. but its giving me error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert from Prompt to string</p>
  </blockquote>
  
  <p>So far I tried this lambda expression:</p>
  
  <pre><code>string message = Response.Prompts.prompt.Find(p =&gt; p.message.ToString().Contains("Hello")); 
  </code></pre>