Infer PTypes from Scala primitives