remove more unnecessary casts for NULL.