closes #3: casting only if MGraph is a LockableMGraph