Use a CODE function instead of CONCAT

This function converts integers and handle NILs.