implement string to bool conversion

When using ng-if this change can be very useful.

```
<input type="checkbox" ng-model="isvisible">
<div ng-if="isvisible"></div>
```

The example above does not work without this change