There's a `mgmt.getBrooklynProperties()` method you can use, rather than casting.