Added cast for 'NULL'