Replaced dynamic_cast with obtain_from_generic in FITCInferenceMethod class
Merge pull request #1062 from votjakovr/develop

Replaced dynamic_cast with obtain_from_generic in FITCInferenceMethod class