This is really just a wrapper around converting the value to a Go native value with gocty, but is convenient to provide since it can attempt type conversion and produce diagnostics automatically.