Primitive type patterns and conversions