Sometimes you will need to get a specific value that is only accessible by expression language.
The following snippet will provide you with a generic method that you can use all the time. It takes a single parameter being the expression and it returns an Object. You will have to do the casting as shown in the examples.
In ADF this can also be used to access the object from the binding.