ensure occurrences,refresh,interval are integers

Convert occurrences, refresh, and interval to integers on data passed from the event.