using System; internal static class Program { private static void Main(string[] args) { double hours = 3.75; int wholeHours = (int)hours; Console.WriteLine($"Whole hours: {wholeHours}"); try { long incoming = (long)int.MaxValue + 1; int narrowed = checked((int)incoming); Console.WriteLine(narrowed); } catch (OverflowException) { Console.WriteLine("Count is outside int range"); } } }