Casting and output - C#