convert to the write type size in attr writes