No cast necessary here. You should actually run your tests in h2gis-standalone as your write them.