Convert to Resource.