Cast strings to ints on vcpu and memory