Heuristic derivation of Casimir effect in minimal length theories