I'm trying to assign the value found in a variable of type uintptr to a uint64 variable in Go. Using
myVar = valFromSystem
gives me
cannot use valFromSystem (type uintptr) as type uint64 in assignment
And trying
myVar = *valFromSystem
gives me
invalid indirect of valFromSystem (type uintptr)
Is there a way to pull the value pointed to by valFromSystem to assign to myVar?