# TryFrom

`import { TryFrom } from "destack:convert";`

Fallible conversion from `T`.

```ds title="TryFrom"
export newtype interface TryFrom<T, E = Error> {
    static tryFrom(value: T): Result<this, E>;
}
```

[language/library/src/convert/from.ds:12:15](https://github.com/destack-sh/destack/blob/main/language/library/src/convert/from.ds#L12-L15)

## Members

### `static tryFrom(value: T): Result<this, E>`

Convert `value`, or return an error.
