manage boolean conversion for redis