Update SQL/obj_procs.sql

Fixed SQL - You should always check data types before you attempt to convert them.