Ameplyemila
New Member
It seems that WebSharper has some difficulties converting between integer types (say, \[code\]int32\[/code\] to \[code\]uint64\[/code\]). I get this:\[quote\] error : Failed to translate a method call: ToUInt64(..) [Microsoft.FSharp.Core.Operators]\[/quote\]The same happens to \[code\]int32\[/code\] -> \[code\]uint32\[/code\], \[code\]int16\[/code\] -> \[code\]int32\[/code\] and many others (only \[code\]byte\[/code\] <-> \[code\]int32\[/code\] seems to be working).So, the question is: how do I get around this issue? I've got an integer \[code\]i\[/code\] (which is \[code\]int32\[/code\] since I can't get anything else) and now I want to get \[code\]i\[/code\]-th element from \[code\]Uint8Array\[/code\]. \[code\]Uint8Array.Get\[/code\] wants an \[code\]uint64\[/code\]. How do I convert my \[code\]i\[/code\] to \[code\]uint64\[/code\]?I was going to use an \[code\][<Inline>]\[/code\] cheat but that doesn't work either, because I get this error even if I try to return or to pass as an argument any integer different form \[code\]int32\[/code\].