I am developing window phone 7 application in silverlight. I am new to the window phone 7 application. I have the long value in String format as follows
String A
You can convert the input long to Object and then convert it to int32.
long
Object
int32
Object a = e; int w = Convert.ToInt32(a);
It worked for me.