Is there a straightforward way to avoid this allocation? Like a PrimitiveArrayRepresentationConverter or somesuch?