Speed up by converting to homogenous type int