def __call__(cls, *args, **kwargs):
    """Creates a computed object, catching self-casts."""
    if len(args) == 1 and not kwargs and isinstance(args[0], cls):
        return args[0]
    else:
        return type.__call__(cls, *args, **kwargs)
