int[] arr = new int[5];
Console.WriteLine(arr.Count.ToString());//Compiler Error
Console.WriteLine(((ICollection)arr).Count.ToString());//works p
Whilst this doesn't answer your question directly, if you are using .NET 3.5 you can include the namespace;
using System.Linq;
which will then allow you to use a Count() method, similar to when casting your int array as an ICollection.
using System.Linq;
int[] arr = new int[5];
int int_count = arr.Count();
You also then have a whole host of nice functions you can use in Linq too :)