public bool Is(object obj, Type type) { return obj != null && type.IsAssignableFrom(obj.GetType()); }