There isn't a native method, but you can implement one. It needs to assume one-to-one mapping.