fix cast string to float/int/timestamp error.

When do those operation:

drop table tmp;
create table tmp(c1 int, c2 string, c3 timestamp);
insert into tmp values(1, NULL, '1999-06-14');
select cast (c2 as float ) from tmp;

then  impalad coredump;