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
🌐
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.
Discussions

cannot convert from double to double[]?
Need to tell it where to put it in the array. Something like amounts[0] = sc.nextDouble(); Or for (int i = 0; i < amounts.length; ++i) { amounts[i] = sc.nextDouble(); } More on reddit.com
🌐 r/javahelp
4
8
February 20, 2019
Convert java double to Double object Example July 14, 2019 4 Comments 1 Min Read 1 2 3 Convert double to Double object Example This example shows how a double primitive value can be converted to a Double object */ 4 5 6 public class JavadoubleToDoubleExample { 7 8 public static void main(String[] args) { double d = 10.56; 9 10 11 12 Use Double constructor to
Convert java double to Double object Example July 14, 2019 4 Comments 1 Min Read 1 2 3 Convert double to Double object Example This example shows how a double primitive value can be converted to a Double object */ 4 5 6 public class JavadoubleToDoubleExample { 7 8 public static void main(String[] ... More on chegg.com
🌐 chegg.com
1
May 24, 2021
Double[] instead of double[] variable declarator
Hi everyone i have a problem with java snippet. when i need as output an array of double the snippet automaticaly set Double which doesn’t exist as type. Possible bug? More on forum.knime.com
🌐 forum.knime.com
0
March 6, 2018
[Java] Possible lossy conversion from double to int error.

If you want to explicitly tell the compiler that you want to convert the numbers to integers, you should cast them as such. Example: int x = (int)(10.0/2.0) will make x have a value of 5.

Do note, however, that in the case of int birthrate, the operation 1.0/7.0 will simply be 0 when cast to an int.

More on reddit.com
🌐 r/learnprogramming
14
3
March 24, 2014
🌐
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, ...
🌐
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)
March 25, 2022 - 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()
🌐
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 = ...
🌐
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.
Find elsewhere
🌐
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, 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.
🌐
DigitalOcean
digitalocean.com › community › tutorials › java-convert-string-to-double
Java Convert String to double | DigitalOcean
August 3, 2022 - Java String to double conversion can be done by many ways. Today we will look into some common ways to convert java string to double primitive data type or Double object.
🌐
W3Schools
w3schools.com › java › java_type_casting.asp
Java Type Casting
Java Examples Java Videos Java Compiler Java Exercises Java Quiz Java Code Challenges Java Server Java Syllabus Java Study Plan Java Interview Q&A Java Certificate ... Type casting means converting one data type into another. For example, turning an int into a double. ... Widening Casting (automatic) - converting a smaller type to a larger type size byte -> short -> char -> int -> long -> float -> double
🌐
YouTube
youtube.com › alex lee
Double In Java - Double VS Int - YouTube
$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 https://bit.ly/3HX970hIn this video, I show you ...
Published   June 15, 2023
Views   10K
🌐
Coderanch
coderanch.com › t › 736004 › java › convert-double-double-add-multiple
How to convert from double to double[][] and add multiple columns to dataframe? (Java in General forum at Coderanch)
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums · this forum made possible by our volunteer staff, including ... ... I'm trying to use this method from the Smile library: but I'd like to add one double integer as the value in the Dataframe, so I'm wondering how I can convert a double to double[][] or if there is a better way to add the value to the dataframe?
🌐
KNIME Community
forum.knime.com › knime extensions
Double[] instead of double[] variable declarator - KNIME Extensions - KNIME Community Forum
March 6, 2018 - Hi everyone i have a problem with java snippet. when i need as output an array of double the snippet automaticaly set Double which doesn’t exist as type. Possible bug?
🌐
GeeksforGeeks
geeksforgeeks.org › java › double-doublevalue-method-in-java-with-examples
Double doubleValue() method in Java with examples - GeeksforGeeks
July 11, 2025 - Java Collection · Last Updated : 11 Jul, 2025 · The doubleValue() method of Double class is a built in method to return the value specified by the calling object as double after type casting.
🌐
Javatpoint
javatpoint.com › java-int-to-double
Java int to double
Java Program to swap two string variables without using third or temp variable.
🌐
GeeksforGeeks
geeksforgeeks.org › java › convert-string-to-double-in-java
Convert String to Double in Java - GeeksforGeeks
July 11, 2025 - Example: Java Program to Convert String to Double Using parseDouble() Method.
🌐
Coderanch
coderanch.com › t › 407594 › java › convert-double-double-array
how to convert double to double array (Beginning Java forum at Coderanch)
October 10, 2016 - A double holds a single value. A double array could hold many values. What do you mean by convert? Or do you mean simply assign them all to the same value, like so? Henry · Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-guava-doubles-toarray-method-with-examples
Java Guava | Doubles.toArray() method with Examples - GeeksforGeeks
July 11, 2025 - Exceptions: This method throws NullPointerException if the passed collection or any of its elements is null. Below programs illustrate the use of toArray() method: Example 1 : Java ·