diff --git a/src/main/java/com/rapiddweller/benerator/script/GraalValueConverter.java b/src/main/java/com/rapiddweller/benerator/script/GraalValueConverter.java index bab95e73..b3e4b88b 100644 --- a/src/main/java/com/rapiddweller/benerator/script/GraalValueConverter.java +++ b/src/main/java/com/rapiddweller/benerator/script/GraalValueConverter.java @@ -23,6 +23,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ + package com.rapiddweller.benerator.script; import com.rapiddweller.common.ConversionException; @@ -64,6 +65,12 @@ private static Object value2JavaConverter(Value value, Map refere result = value.asInt(); } else if (value.fitsInLong()) { result = handleLongValue(value); + } else if (value.fitsInFloat()) { + return value.asFloat(); + } else if (value.fitsInByte()) { + return value.asByte(); + } else if (value.fitsInDouble()) { + return value.asDouble(); } else if (value.hasArrayElements()) { result = getArrayFromValue(value, referenceMap, depth); } else if (value.isString()) {