---
title: "convert(to:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/measurement/convert(to:)"
---

# convert(to:)

Converts the measurement to the specified unit.

## Declaration

```swift
mutating func convert(to otherUnit: UnitType)
```

## Parameters

- `otherUnit`: A unit of the same Dimension.

## See Also

### Converting to Other Units

- [converted(to:)](foundation/measurement/converted(to:).md)
