Modify resource to get the correct value depending his type