title: call method foreach selected item in a listview
body: <p>I want to call a method that takes in a string for each selected item in a listview. </p>
  
  <pre><code>foreach (string item in lvwPoliciesAvailableForHoldBack.SelectedItems)
                  {
                      Database.HoldBackPolicy(item);
                  }
  </code></pre>
  
  <p>I'm running into this error:<br></p>
  
  <p>Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type 'System.String'.<br></p>
  
  <p>Here's the "HoldBackPolicy" method:</p>
  
  <pre><code>public int HoldBackPolicy(string PolicyNumber)
          {
              int result = 0;
  
              SqlCommand cmd = new SqlCommand("spHoldBackPolicy", conn);
              cmd.CommandType = CommandType.StoredProcedure;
              cmd.Parameters.AddWithValue("@PolicyNumber", PolicyNumber);
  
              var returnParameter = cmd.Parameters.Add("@RETURN_VALUE", SqlDbType.Int);
              returnParameter.Direction = ParameterDirection.ReturnValue;
  
              try
              {
                  conn.Open();
                  cmd.ExecuteNonQuery();
                  result = Convert.ToInt32(returnParameter.Value);
              }
              catch (Exception e)
              {
                  MessageBox.Show(e.Message.ToString());
              }
              finally
              {
                  conn.Close();
              }
              return result;
          }
  </code></pre>