How about this?
bool isTrue = (test == 1 ? true : false);
Eww. Let's talk about what's icky about that solution. First, let's look at
the ternary operator. You're testing a condition, which will result in true
of false, and then based on that true or false, you're going to
return...true or false! Why not just return the result of the condition?
Next, while your answer solves the stated problem in an exactly-as-worded
manner, but it should be obvious to any seasoned programmer that the OP
wants zero = false, non-zero = true. So the better test would be
bool isTrue = test != 0;
Oh, and congrats on answering a three-and-a-half-year-old post. I wonder if
the OP has been sitting at his machine all this time hitting F5....