[BZ-971008] add test case for inline cast using macthes operator
(cherry picked from commit fc9e1d41199d4ab39db246c0e46b693c91adebe7)