cast parent of subproperties to bool if they are not ones already
Merge pull request #1281 from patrickkettner/castBool

cast parent of subproperties to bool if they are not ones already