title: Unable To Cast DataSet
body: <p>I Get Error While debugging the program, sayingUnable to cast object of type 'System.Data.DataSet' to type MyDatabase.DataSet'</p>
  
  <p>What Do I Need TO DO Fix It</p>
  
  <pre><code>private void btnLogin_Click(object sender, System.EventArgs e)
     {
      string strUser;
      string strPass;
      string sMsg = "";
  
      strUser = txtUserID.Text ;
      strPass = txtPassword.Text ;
  
      DataSet o_Find = new DataSet ();
      Users oUsers = new Users();
  
      try
      {
          o_Find = (DataSet)oUsers.FindData(strUser,strPass);
          sMsg = "Welcome " + o_Find.Tables ["Login"].Rows[0]["UserName"].ToString ();
  
          switch (strUser)
          {
              case "Admissions":
                  frmAdmissions admitForm = new frmAdmissions ();
                  admitForm.Visible = true;
                  admitForm.Activate();
                  break;
              case "Admin":
              case "Nurse":
              case "Doctor":
                  frmMenu menuForm = new frmMenu ();
                  menuForm.oCurrent.UserName = strUser;
                  menuForm.Visible = true;
                  menuForm.Activate();
                  menuForm.SelectUser();
                  break;
          }
  
      }
  </code></pre>