public static bool CanAssign(object target, Type assignType) { return (target != null) && target.GetType().IsAssignableFrom(assignType); }