Updated ProvidedTypes.fs to support mono for casting of generic reference types