improve error message in RsResult.asInstanceOf()