code: public static Expression type(String lhs, Type rhs) {
          return new Expression(lhs, "$type", rhs.toString());
      }
docs: Check the document field's type
  and object
  @param lhs The field to check
  @param rhs The type
  @return Expression: lhs $type rhs