Cast TF generate() inputs
Enable TF `generate()` to support any integer dtype by adding casts at the beginning of the main method.
_The documentation is not available anymore as the PR was closed or merged._<|||||>@gante Let me know if you're okay with the slightly cheeky `-1`, and other than that I'm happy to merge whenever!<|||||>haha the cheeky `-1` is fine for me. 

I do have one additional nit: can it be moved to after the code in step `0`? The idea would be to run a quick validation of arguments and classes before doing any actual work. (My bad, I should have been more precise in my prior comment 🤦 )<|||||>@gante Done! The failing tests are hub server-side issues.<|||||>Thanks 🙏 