Common utils to use with F#