typecast strings to integers in findRecords