title: Postgresql. CREATE CAST 'character varying' to 'integer'
body: <p>I want to CREATE CAST a suitable function to convert 'character varying' to 'integer'. Can anyone suggest a function? Everything I try fails.</p>