Adding cast to int for lookup