Hi all, I'am trying to call some methods like here: ${element.contents.name} > Where 'contents' is represented as Object, but in my component I know exact type of this field. When I try to render name field I get exception. One possible solution is to write a public method in my component which makes cast and returns object of exact type, like here:
> public MyType castToMyType(Object o){ > MyType m = (MyType)o; > return m; > } > And call this method from template: > ${castToMyType(element.contents).name} > Is there better approach to do this? Thanks in advance. Anton