Added basic support for casting an array to an IList<_>.