setting it as string looks dangerous. Perhaps could use `TypeCoercions.coerce(elementForSensor.getAsString(), attribute.getType())`.