Better place for cast to integer