Problem syntax C# => JS


I have this code in C# :

public static void Main(string[] args)
    XmlSerializer deserializer = new XmlSerializer(typeof(Address));
    TextReader reader = new StreamReader(@"D:\myXml.xml");
    object obj = deserializer.Deserialize(reader);
    Address XmlData = (Address)obj;

And i made it in JS :

public static function Main(args :String) {
    var deserializer : XmlSerializer = new XmlSerializer(typeof(Adress)); 	
    var reader : TextReader = new StreamReader(Application.dataPath +"XML.xml"); 	
    var obj : object = deserializer.Deserialize(reader);
    var XmlData : Address =(Address)obj; 	

But this ligne give me an error:

var XmlData : Address = (Address)obj;

Assets/Script/Adress.js(18,50): UCE0001: ‘;’ expected. Insert a semicolon at the end.

I don’t understand why, please someone for help me ?

var XmlData : Address = obj as Address;