Based on the error message, I think you have an object with type similar to 'o' below.

So code after that may suggest solution.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#light

let objArr = Array2.create 1 1 (new obj())

objArr.[0,0] <- (12.34 :> obj)

let o = objArr :> obj

printfn "%A" o

let oa : obj[,] = unbox o

let f : float = unbox (oa.[0,0])

printfn "%f" f
By on 8/5/2008 12:23 PM ()

ok, great! that method works. careful analysis of the types is useful...

By on 8/5/2008 7:10 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper