SERVER-9124: cast id to double before converting to JS