title: Apex- Set Picklist Field Selected Value
body: <p>I have a picklist field in some object. And, through apex, I want to set the selected value of the picklist. When I try to do that, it says "bad value for restricted picklist field:".
  but the value I am trying to set is there in the value set. And I have enabled "Restrict picklist to the values defined in the value set" too.</p>
  
  <pre><code>     MyObject.MyPickListField = 'Belgium';
  </code></pre>
  
  <p>May I know where I have gone wrong in setting the picklist field's selected value ?</p>