Cast 'addedAt' and 'lastViewedAt' to integers