title: Mapping an array in NHibernate
body: <p>I've got an array in a single column in my database. 
  In postgres it looks like this: </p>
  
  <pre><code>orientation double precision[]
  </code></pre>
  
  <p>where 'orientation' is column name.
  How to map this in C#?</p>
  
  <p><code>&lt; property name="Orientation"/&gt;</code> in my hbm.xml file doesn't do the work. 
  My class in C# contains the field:</p>
  
  <pre><code>public virtual double[] Orientation { get; set; }
  </code></pre>
  
  <p>This gives me an exception:</p>
  
  <blockquote>
    <p>Could not cast the value in field Orientat9_0_ of type Double[] to the
    Type SerializableType.  Please check to make sure that the mapping is
    correct and that your DataProvider supports this Data Type.</p>
  </blockquote>
  
  <p>And also this: </p>
  
  <blockquote>
    <p>Unable to cast object of type 'System.Double[]' to type
    'System.Byte[]'.</p>
  </blockquote>
  
  <p>I don't want to create any additional tables in my database.</p>