Convert array from nullable type to non-nullable of same type?
<p>I would like to convert a <code>Nullable(Of Byte)()</code> array (a.k.a. <code>byte?[]</code>) to a non-nullable array of the same type, that is, from <code>byte?[]</code> to <code>byte[]</code>.</p>

<p>I'm looking for the simpler, easier, faster generic solution, in C# or VB.NET. I've found <a href="https://stackoverflow.com/a/5487812/1248295">this</a> generic function to convert between nullable types but I can't find a way to adapt the conversion logic to convert from a nullable type to a non-nullable type.</p>

<p>This is a code example for which I feel the need to perform that kind of conversion:</p>

<pre><code>byte?[] data = {1, 0, 18, 22, 255};
string hex = BitConverter.ToString(data).Replace("-", ", ");
</code></pre>