Help understanding use of to_ip() and underlying IP data format in index

the type you specify with to_ip() does no change how the data is stored. Because that is only given during the processing pipelines. That would allow you to check if the IP is in a certain subnet or similar.

If you want to change the way the IP is stored in Elasticsearch, you would need to create a custom mapping in Elasticsearch for that field.