title: 'List<dynamic>' is not a subtype of type 'List<Water>' in type cast
body: <p>I want to show the sum of data as String, but I am getting an error.</p>
  <blockquote>
  <p>'List' is not a subtype of type 'List' in type cast
  At line number 11</p>
  </blockquote>
  <p>I am using Hive for database.</p>
  <p>Can you help me fix the error?</p>
  <pre class="lang-dart prettyprint-override"><code>class Home extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SafeArea(
          child: Container(
            child: Center(
              child: ValueListenableBuilder(
                  valueListenable: getBoxValueListeneable(),
                  builder: (context, box, _) =&gt; Text(
                      sumWater(box.get(formatTimeToString(DateTime.now()))).toString(),
                      style: Theme.of(context).textTheme.headline2)),
            ),
          ),
        ),
        floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
        floatingActionButton: FloatingActionButton(
          child: Icon(Icons.add),
          onPressed: () async {
            Navigator.pushNamed(context, '/addWaterBox');
          },
        ),
      );
    }
  }
  </code></pre>