Added toggle to use boolean as numeric type for backwards compatibility