Use MemoryStream and BinaryWriter to convert decimal to byte array