Cast frequency to integer