In the following snippet my intention is to convert a System.Object (which could be an FSharpList) to a list of whatever generic type it is holding.
matc
It turns out that either list<'a> or array<'a> can be matched as seq
list<'a>
array<'a>
seq
match o with | :? seq -> addChildCollection(o :?> seq) | _ -> addChild(o)
I don't really care that it is a list. As long as I can iterate over it.