Thank you guys for your help. I tried many of your suggestions and they did not work. I then took huMpty duMpty advice and stored it into a var variable. I then converted the var type to int.
Heres is my now working code:
var result = command.ExecuteScalar();
int i = Convert.ToInt32(result);
if (i == 0)
{
lblMessage.Text = "Person does not exist";
}
else
{
lblMessage.Text = "Person exists";
}