You could also just call:
```
return length_to_elements<binary>((size_to_length<binary>(bytes));
```