title: How to get SPuser object from Assigned To field of task
body: <p>Hi I have a sharepoint 2007 workflow and i need to get the SPuser object in order to send mails to the user but all i can get is a string from the task's assigned to field.
  How do i do this?</p>
  
  <p>This is my code</p>
  
  <pre><code>foreach (SPWorkflow workflow in splistitem.Workflows)
  {
       foreach (SPWorkflowTask task in workflow.Tasks)
       {
           string user = task["Assigned To"].ToString();
       }
  }
  </code></pre>