Fixed the bool issue

This commit fixed the variant -> boolean conversion issue
because a boolean was converted with .toBool() while it was
a string.