System.Extensions.ToBool C# (CSharp) Method

ToBool() public static method

public static ToBool ( this anObject ) : bool
anObject this
return bool
        public static bool ToBool(this object anObject)
        {
            bool ret = false;
            try { ret = Convert.ToBoolean(anObject); }
            catch (Exception) { }
            return ret;
        }