Apparently, Room is not able to handle MutableLiveData and we have to stick to LiveData as it returns the following error:
error: Not sure how to convert a Curso
In your repository you can get LiveData and transform it to MutableLivedata:
LiveData
MutableLivedata
var data= dao.getAsLiveData() return MutableLiveData(data.value)