To avoid another cartographic allocation, you can do:

```
extent.getCenter(center);
proj.project(center, center);
```