do not cast and check multiple times