I was using ArrayList (which is not available in Silverlight) internally Array#sample. Update to use List<object>