fm_as_lattice_2d function

Convert objects to fm_lattice_2d