module with conversions from double to various integers that will throw exceptions if you try to exceed the range of the integer type
2 Likes
I pushed a couple updates to that one already