Coverting a .stl or .mph file to niftii

Hi, I am trying to convert a 3D model created in Comsol multiphysics to nifti file. Can some one tell me if that can be done. Thank you in advance