If you don't mind using a 3rd party library, commons-lang has the ArrayUtils type with various methods for manipulation.

Double[] doubles;
...
double[] d = ArrayUtils.toPrimitive(doubles);

There is also the complementary method

doubles = ArrayUtils.toObject(d);

Edit: To answer the rest of the question. There will be some overhead to doing this, but unless the array is really big you shouldn't worry about it. Test it first to see if it is a problem before refactoring.

Implementing the method you had actually asked about would give something like this.

double[] getDoubles(int columnIndex) {
    return ArrayUtils.toPrimitive(data[columnIndex]);
}
Answer from Rich Seller on Stack Overflow
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › lang › Double.html
Double (Java Platform SE 8 )
October 20, 2025 - Java™ Platform Standard Ed. 8 ... The Double class wraps a value of the primitive type double in an object. An object of type Double contains a single field whose type is double. In addition, this class provides several methods for converting a double to a String and a String to a double, as well as other constants and methods useful when dealing with a double.
🌐
Java
download.java.net › java › early_access › valhalla › docs › api › java.base › java › lang › Double.html
Double (Java SE 23 & JDK 23 [build 1])
The two-step sequence of conversions, string to float followed by float to double, is not equivalent to converting a string directly to double. For example, the float literal 0.1f is equal to the double value 0.10000000149011612; the float literal 0.1f represents a different numerical value ...
🌐
Coderanch
coderanch.com › t › 750518 › java › difference-double-Double-java
What is the difference between 'double' and 'Double' in java? (Beginning Java forum at Coderanch)
Junilu Lacar wrote:the compiler probably generates bytecode to invoke d2.doubleValue() to unbox it If you follow the link Campbell provided to the JLS section on unboxing conversions, you'll see my guess was right: The Java Language Specification 5.1.8 wrote:If r is a reference of type Double, then unboxing conversion converts r into r.doubleValue()
🌐
BeginnersBook
beginnersbook.com › 2013 › 12 › how-to-convert-string-to-double-in-java
Java Convert String to Double examples
The value of variable dnum of double type would be 122.202 after conversion. Lets see the complete example of the conversion using parseDouble(String) method. public class JavaExample{ public static void main(String args[]){ String str = "122.202"; /* Convert String to double using * ...
🌐
Software Testing Help
softwaretestinghelp.com › home › java › java double – tutorial with programming examples
Java Double - Tutorial With Programming Examples
April 1, 2025 - In this tutorial, we have explained the double primitive type with an appropriate example. We have also included DecimalFormat and BigDecimal Java with programs. Suggested reading =>> Methods to convert Java string to double
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-lang-double-class-java
Java.Lang.Double Class in Java - GeeksforGeeks
July 23, 2025 - Examples · Quizzes · Projects · Cheatsheet · DSA in Java · Java Collection · Last Updated : 23 Jul, 2025 · Double class is a wrapper class for the primitive type double which contains several methods to effectively deal with a double value like converting it to a string representation, and vice-versa.
🌐
TutorialsPoint
tutorialspoint.com › convert-double-primitive-type-to-a-double-object-in-java
Convert double primitive type to a Double object in Java
JavaObject Oriented ProgrammingProgramming · To convert double primitive type to a Double object, you need to use Double constructor. Let’s say the following is our double primitive. // double primitive double val = 23.78; To convert it to a Double object, use Double constructor.
Find elsewhere
🌐
Tutorialspoint
tutorialspoint.com › home › java/lang › java double value method
Java Double Value Method
September 1, 2008 - It ranges from values 1.7976931348623157 x 10308 to 4.9406564584124654 x 10-324 (both positive and negative). The default value and size of double is 0.0d and 8 bytes respectively.
🌐
Oracle
docs.oracle.com › javase › 7 › docs › api › java › lang › Double.html
Double (Java Platform SE 7 )
Java™ Platform Standard Ed. 7 ... The Double class wraps a value of the primitive type double in an object. An object of type Double contains a single field whose type is double. In addition, this class provides several methods for converting a double to a String and a String to a double, ...
🌐
Java67
java67.com › 2015 › 06 › how-to-convert-string-to-double-java-example.html
How to convert String to Double in Java and double to String with Example | Java67
Just make sure that empty String literal i.e. "" should be the first argument or else + operator will do addition instead of String concatenation. The second method is mainly for the Double objects, but don't worry even if you have a double value you can leverage autoboxing to first convert it into a Double object and then just call the toString() method on it to get an equivalent String in Java.
🌐
DigitalOcean
digitalocean.com › community › tutorials › java-convert-string-to-double
Java Convert String to double | DigitalOcean
August 3, 2022 - String str = "98.7"; double d = new Double(str).doubleValue(); //constructor deprecated in java 9 System.out.println(d); //98.7 · This is useful to parse formatted string to double. For example, if String is “1,11,111.23d” then we can use DecimalFormat to parse this string to double as:
🌐
Home and Learn
homeandlearn.co.uk › java › double_variables.html
java for complete beginners - double variables
Change the int from your previous code to double. So change this: ... Leave the rest of the programme as it is. Your coding window should look like this: Run your programme again. The output window should look like this: Try changing the values stored in first_number and second_number. Use any values you like. Run your programme and see what happens. In the next part, you'll learn about two more Java ...
🌐
Quora
quora.com › How-do-I-convert-Object-to-double-in-Java
How to convert Object to double in Java - Quora
Answer (1 of 5): No one has touched on this yet, so I will: Stop using collections of [code ]Object[/code] to store dissimilar types. The reasons you’re facing this problem is you’re fighting against your tools. Collections are typed so that you always know for sure what they contain.
🌐
DataCamp
datacamp.com › doc › java › double
double Keyword in Java: Usage & Examples
... public class DoubleExample { public static void main(String[] args) { double pi = 3.14159; double gravity = 9.81; System.out.println("Value of pi: " + pi); System.out.println("Value of gravity: " + gravity); } } In this example, two double variables pi and gravity are declared and initialized ...
🌐
Oracle
docs.oracle.com › en › java › javase › 24 › docs › api › java.base › java › lang › Double.html
Double (Java SE 24 & JDK 24)
July 15, 2025 - P where Sign, FloatingPointLiteral, HexNumeral, HexDigits, SignedInteger and FloatTypeSuffix are as defined in the lexical structure sections of The Java Language Specification, except that underscores are not accepted between digits. If s does not have the form of a FloatValue, then a NumberFormatException is thrown. Otherwise, s is regarded as representing an exact decimal value in the usual "computerized scientific notation" or as an exact hexadecimal value; this exact numerical value is then conceptually converted to an "infinitely precise" binary value that is then rounded to type double by the usual round-to-nearest rule of IEEE 754 floating-point arithmetic, which includes preserving the sign of a zero value.
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › java.base › java › lang › Double.html
Double (Java SE 17 & JDK 17)
January 20, 2026 - P where Sign, FloatingPointLiteral, ... of The Java Language Specification, except that underscores are not accepted between digits. If s does not have the form of a FloatValue, then a NumberFormatException is thrown. Otherwise, s is regarded as representing an exact decimal value in the usual "computerized scientific notation" or as an exact hexadecimal value; this exact numerical value is then conceptually converted to an "infinitely precise" binary value that is then rounded to type double by the usual ...
🌐
GeeksforGeeks
geeksforgeeks.org › java › double-parsedouble-method-in-java-with-examples
Double parseDouble() method in Java with examples - GeeksforGeeks
July 11, 2025 - // Java Code to implement // parseDouble() method of Double class class GFG { // Driver method public static void main(String[] args) { try { String str = ""; // returns the double value // represented by the string argument double val = Double.pa...
🌐
Studytonight
studytonight.com › java › double-class.php
Java Double Class | Studytonight
It returns a new String representing of specified double object. Syntax of the method is given below. ... Lets take an example to get string object of a double type. We used toString() method which is static so we can call it by using the class name.