Use Cast<>() transition actor and return NULL , but it still Valid, Why?

I use Cast<>(), c++ code transition actor , return Null , but It pass the " if " check why?

201603-code.jpg