Use correct type for marshalling to raw vector