I've to convert an object to string only if the object is a boolean.
I've done in this manner:
public object Convert(object oldType)
{
    bool value;
    if (oldType is bool)
    {
        value = (bool)oldType;
        if (value)
            return "1";
        else
            return "0";
    }
Is it safe?
 
     
    