Type cast varbit on write