We're not allowed to do this (see previous comment). Probably, we can use such conversion in test class, but I would prefere to see clear API calls instead of this.