Custom type mapping.