cast episode and season to integers