Java correct way convert/cast object to Double

new Double(object.toString());

But it seems weird to me that you’re going from an Object to a Double. You should have a better idea what class of object you’re starting with before attempting a conversion. You might have a bit of a code quality problem there.

Note that this is a conversion, not casting.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)