---
title: Type conversion
framework: accelerate
role: collectionGroup
role_heading: API Collection
path: accelerate/type-conversion
---

# Type conversion

Perform element-wise floating-point to integer and integer to floating-point conversion.

## Topics

### Conversion between floating-point types

- [doubleToFloat(_:)](accelerate/vdsp/doubletofloat(_:).md)
- [floatToDouble(_:)](accelerate/vdsp/floattodouble(_:).md)
- [convertElements(of:to:)](accelerate/vdsp/convertelements(of:to:)-2ejgr.md)
- [convertElements(of:to:)](accelerate/vdsp/convertelements(of:to:)-698ye.md)

### Conversion between floating-point and integer types

- [Integer to single-precision floating-point conversion](accelerate/integer-to-single-precision-floating-point-conversion.md)
- [Integer to double-precision floating-point conversion](accelerate/integer-to-double-precision-floating-point-conversion.md)
- [Single-precision floating point to integer conversion](accelerate/single-precision-floating-point-to-integer-conversion.md)
- [Double-precision floating point to integer conversion](accelerate/double-precision-floating-point-to-integer-conversion.md)

## See Also

### Vector conversion functions

- [Conversion to decibel equivalents](accelerate/conversion-to-decibel-equivalents.md)
- [Complex vector conversion](accelerate/complex-vector-conversion.md)
- [Polar-rectangular conversion](accelerate/polar-rectangular-conversion.md)
