.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;
using System.Linq;
					
public class Program
{
	public static void Main()
	{
		uint number = 1;
		object value = new []{ number };
		var idList = value as IEnumerable<int>;
		var uintList = value as IEnumerable<uint>;
		
		Console.WriteLine(idList.First());
		
		var b = uintList.ToList();
		var a = idList.ToList();
	}
}
;