EDIT : First part removed i found the answer.
I have the following problem : im reading a number from the input and trying to use that number to access a given array position. I get the following results
value #=> "0"
value.to_i #=> 0
myArray[0] #=> MyObject
myArray[value.to_i] #=> nil