You can extract the tensor present in a Variable by accessing the .data field.
Then, you can take the value corresponding to it by simply indexing it. Here is an example
variable = Variable(torch.rand(1))
num = variable.data[0]