I don't have an immediate need/use for this, since we use prepared statements for inserts, which resolve/infer the datatype from the target column. But it can sometimes be necessary to specify.
https://www.postgresql.org/message-id/CAKFQuwZPuwyg%3D29ssWrO7oeJM4UFpwm3CSmbPMUDc34Y5Uso_Q%40mail.gmail.com