msg cast between two