I get my variable from `var pi = propertyInfo.GetValue(instance)`
this is an `object` Type. I know all result of this are of type
`ObjectSet<TEntity>` . I don't know `TEntity`. `TEntity` is allways different.

The consuming function looks alike:

```
BuildClassItem<T>(ObjectSet<T> entities, ... ) where T : class

```

How can I cast object to ObjectSet ?

I tried alredy this. But I don't know T

```
public static ObjectSet<T> MyConvert<T>(object myInput) where T : class
{
    return (ObjectSet<T>)myInput;
}

```