Making Params do autocasting

To ease creation and recovery of parameters.
Exercise 2.2