int? a = 17; Type typeOfA = a.GetType(); Console.WriteLine(typeOfA.FullName); // Output: // System.Int32