Cleanup: Using cast<object> to convert ienumerable to array