I think I got it right now!
t_int = t.astype('int32') was required at the beginning of my SIR-function. Thanks!
t_int = t.astype('int32')