title: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.util.Map
body: <p>I am getting the error in this line: "Map map = (Map) dataSnapshot.getValue();"</p>
  
  <pre><code>     private void getAssignedCustomer(){
      String driverId = FirebaseAuth.getInstance().getCurrentUser().getUid();
      DatabaseReference assignedCustomerRef = FirebaseDatabase.getInstance().getReference().child("Users").child("Drivers").child(driverId);
      assignedCustomerRef.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              if(dataSnapshot.exists()){
  
                  Map&lt;String, Object&gt; map = (Map&lt;String, Object&gt;) dataSnapshot.getValue();
  
                  if(map.get("customerRideId") != null){
                      customerId = map.get("customerRideId").toString();
                      getAssignedCustomerPickupLocation();
                  }
              }
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
          }
      });
  }
  </code></pre>
  
  <p>How to get rid of this error???</p>