implicit conversion to pattern