I'm Working with Laravel `ACL`.In every Role have group of permissions. I represent the all permissions using checkbox. When I submit form it's return a permissions array like this.

```
{
read: "true",
create: "true",
delete: "false",
update: "false"
}

```

array value show as `double quotes` string ,but i want it as `boolean` 
How can i cast array values string to boolean.

```
@foreach($role->permissions as $key=>$value)

           <td>
           <input type="hidden" name="permission[{{$key}}]" class="role" value="false" {{ $value==0 ? 'checked' : '' }}>
           <input type="checkbox" name="permission[{{$key}}]" class="role" value="true" {{ $value==1 ? 'checked' : '' }}>
            </td>
@endforeach

```

I want to array value like this.

```
{
read: true,
create: true,
delete: false,
update: false
}

```