Is there any alternative to VB\'s CBool keyword in C#?
What about all the other functions?
CBool
will turn to a Boolean any valid boolean:
If you expect to be converting from one of the string values: "True", "true", "False", or "false", you should use Boolean.Parse. Instead of trying to be "smart" about it, Parse will "fail fast" if it doesn't get what it expects. By using a "smart" conversion when you don't really need it, you may mask errors at their source then have to track them down when they appear later in the code, which is usually more difficult.