Added castValues option.

Added an ability to override the auto casting if necessary by setting the option castValues to false. If not provided, values will continue to be casted as before.