title: Conversion Of Datatype
body: <p>I am getting a error "Conversion failed when converting the nvarchar value 'UDAYA' to data type int." I tried to sort it out by adding Convert.ToInt32(); but it didn't worked out.
  My Code looks like</p>
  
  <pre><code>SqlConnection connection = new SqlConnection(connectionstring);
          connection.Open();
          SqlCommand cmd = new SqlCommand(("select MenuId from MenuPermissionTable where UserId=@UserId"), connection);
          cmd.Parameters.AddWithValue("@UserId",Login.userid_string);
          Convert.ToString("@UserId");
          SqlDataAdapter adp = new SqlDataAdapter(cmd);
          adp.SelectCommand = cmd;
          DataSet ds = new DataSet();
          adp.Fill(ds);
  </code></pre>