Your attempt to cast an object variable to a specific class type using the parenthesis syntax was not successful. This type of cast must meet at least one of the following conditions:
- The cast type falls within the hierarchy (either up or down) of the object being cast.
- An explicit conversion exists from the source to the destination type.
- A value type is being cast to or from System.Object.