Downcasting of shared pointer in demo_FEMvisualize.cpp.
(This is needed since the new implementation of shared pointers do not provide automatic downcasting of pointers, in sake of a more strict enforcing of type checking from the user side.)