Updating the integer casting for a performance increase.