better use DecimalType.class.isInstance(state)