public static Vector toVector(ReadableArray value) {
        if (value == null) {
            return null;
        }

        if (value.size() != 3) {
            throw new IllegalArgumentException("Vectors require 3 values.");
        }

        return new Vector((float) value.getDouble(0), (float) value.getDouble(1), (float) value.getDouble(2));
    }
Class containing few common helper methods.
Note - Feel free to split / rename this class as this class gets more methods
android/viro_bridge/src/main/java/com/viromedia/bridge/utility/Helper.java