Issue 1196 - Fix dealing with boolean VARIANT

Fix dealing with boolean VARIANT and get rid of warning about forcing of the type conversion.