Hello DarrenBiz.Here is the SQL script that we created:DROP FUNCTION IF EXISTS convertToVarchar(parmValue text);CREATE OR REPLACE FUNCTION convertToVarchar(parmValue text)RETURNS VARCHAR AS 'DECLARE v_var_value VARCHAR DEFAULT null;BEGIN v_var_value := parmValue::TEXT; RETURN v_var_va...