제목 : 12.2.2. 예제. 박싱과 언박싱을 확인하는 프로그램 2(2번 캐스팅 하기)
    
    
 
    
	
        
        
		
		
	
	
    
	//박싱과 언박싱을 확인하는 프로그램
using System;
public class 박싱
{
    public static void Main()
    {
        int 박싱_정수형변수 = 1;
        object 오브젝트형변수 = 박싱_정수형변수;
        long 언박싱_정수형변수 = (long)(int)오브젝트형변수;    //이 부분 주의
        Console.WriteLine("박싱_정수형변수 : {0}({1})", 박싱_정수형변수, 박싱_정수형변수.GetType());
        Console.WriteLine("오브젝트형변수 : {0}({1})", 오브젝트형변수, 오브젝트형변수.GetType());
        Console.WriteLine("언박싱_정수형변수 : {0}({1})", 언박싱_정수형변수, 언박싱_정수형변수.GetType());
    }
}