```write<bool>(b)``` is already specialized to work like this.