fix type for the data field in Digital

It should obviously be a boolean