/// <summary>
        /// Filter out null elements in an array of any type
        /// </summary>
        /// <typeparam name="T">Type of elements in the array</typeparam>
        /// <param name="source">Array instance to operate on</param>
        /// <returns></returns>
        public static T[] FilterOutNullElements<T>(this T[] source)
        {
            return source.Where<T>(item => item != null).ToArray<T>();
        }