---
title: "toOffset"
description: "Converts the [IntOffset] to an [Offset]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline fun IntOffset.toOffset() = Offset(x.toFloat(), y.toFloat())
```


Converts the `IntOffset` to an `Offset`.



