It has become apparent that I can't use runtime only knowable types with generic functions, unfortunately. I've created a bit of a test that utilises reflection instead and it seems to be pretty close to what I want... errors notwithstanding.