do format conversion for writes to dataports