diff --git a/src/main/java/net/http/aeon/elements/ObjectPrimitive.java b/src/main/java/net/http/aeon/elements/ObjectPrimitive.java index 039eacc..1916e93 100644 --- a/src/main/java/net/http/aeon/elements/ObjectPrimitive.java +++ b/src/main/java/net/http/aeon/elements/ObjectPrimitive.java @@ -39,6 +39,10 @@ public boolean asBoolean() { return Boolean.parseBoolean(value.toString()); } + public double asDouble() { + return Double.parseDouble(value.toString()); + } + public short asShort() { return Short.parseShort(value.toString()); }