From Middle English bicasten, equivalent to - + cast. Sense of plan, plot due to conflation with costen ("to contrive, try"). More at costen.