Possible Duplicate:
What is the difference between the following casts in c#?
In C#, is a there difference between casting an object or using the as
keyword? Hopefully this code will illustrate what I mean...
String text = "Hello hello";
Object obj = text;
String originalCast = ((String)obj).ToUpper();
String originalAs = (obj as String).ToUpper();
Thanks
:)