title: Convert Any type in scala to Array[Byte] and back
body: <p>I have a variable value declared as <code>Any</code> in my program.</p>
  <p>I want to convert this value to <code>Array[Byte]</code>.</p>
  <p>How can I serialize to <code>Array[Byte]</code> and back? I found examples related to other types such as <code>Double</code> or <code>Int</code>, but not to <code>Any</code>.</p>