error: cast the timestam expression - Mailing list pgsql-sql

From friendVU admin
Subject error: cast the timestam expression
Date
Msg-id 41FA527E.9050005@friendvu.com
Whole thread Raw
Responses Re: error: cast the timestam expression  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: error: cast the timestam expression  (Michael Glaesemann <grzm@myrealbox.com>)
List pgsql-sql
When I execute this:
"insert into comments   (    date_posted    )     (select  date_published   from xyz    )"

I get :
"ERROR:  column "date_posted" is of type timestamp without time zone but 
expression is of type text
HINT:  You will need to rewrite or cast the expression."

Both dates are of type timesamp!
I searched how to cast, and can't find it.

What is the syntax to cast a timestamp to a timestamp?
tia,
.V


pgsql-sql by date:

Previous
From: "Muhyiddin A.M Hayat"
Date:
Subject: Calendar Function
Next
From: Tom Lane
Date:
Subject: Re: error: cast the timestam expression