Possible Duplicate:
What is the difference between the following casts in c#?
While am working on C#, her am doing type casting at that point I got a doubt:-
What is the difference between Object type casting for "as vs. (int)/(string)/... soon"?
Example:
int a = (int) value;
VS.
int a = value as int;
string a = (string) value;
VS.
string a = value as string;
and soon...
Can any help explain this in detail?
Thanks in advance.