Confident patterns: define conversion functions