In your Signatures
property you try to use the as
operator to convert the type into int[][]
. The Select
method however returns an IEnumerable<int[]>
which is not an array. Use ToArray
to create the array:
public int[][] Signatures
{
get
{
return Nodes.Select(x => x.Signature).ToArray();
}
}