I'm trying to cast from an Object to a HyperLink but I get the invalid cast error message. Here is my code:
Object newObject = new Object();
HyperLink Control1 = (HyperLink)newObject;
Why doesn't that work? Shouldn't I be able to go from an Object to a Control? This makes no sense.