CS0029: Cannot implicitly convert type 'string' to 'int'
<p>hi ive got this error when i tried to run but theres error</p>
<blockquote>
<p>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.</p>
<p>Compiler Error Message: CS0029: Cannot implicitly convert type 'string' to 'int'</p>
</blockquote>
<pre><code> cmd.Parameters.AddWithValue(&quot;@pDateOfDelivery&quot;, po.dateOfDelivery);
                cmd.Parameters.AddWithValue(&quot;@pStatus&quot;, po.status);
                cmd.Parameters.AddWithValue(&quot;@pDeliveryTiming&quot;, po.deliveryTiming);
                cmd.Parameters.AddWithValue(&quot;@pCoID&quot;, po.coID);

                try
                {
                    conn.Open();
                    int iResult = cmd.ExecuteNonQuery();
                    if (iResult &gt; 0)
                    {
                        result = &quot;You have successfully updated the DeliveryOrder!&quot;;
                    }
                    else
                    {
                        result = &quot;You have encountered an error. Please try again.&quot;;
                    }
                }
                catch (Exception)
                {
                    result = &quot;You have encountered an error. Please try again&quot;;
                }
                finally
                {
                    cmd.Dispose();
                    conn.Close();
                }
            }
        }
        return result;
    }
</code></pre>