title: What type should I declare a DateTime object in a scala class constructor?
body: <p>Im trying to map rows from a cassandra table to a custom class but keep getting an IllegalArgumentException for the DateTime values. I've tried every type I can think of and they all throw the same exception. Help would be greatly appreciated. I'm a scala noob btw.</p>
  
  <pre><code>case class ClickData(Uuid: String, Tile: String, Latestclick: Long, OriginalTimestamp: Long, Rating: Int)
  
  ----------------------------
  
  val data = sc.cassandraTable[ClickData]("test", "user_data")
  
  data.foreach((i: ClickData) =&gt;
  
    println("CASSIE ROW: "+i)
  
  
  )
  </code></pre>
  
  <p>table row example:</p>
  
  <pre><code>uuid: 4hgfyt24854grh3fg34u3re47ff, tile: blah-blah, latest_click_timestamp: 2016-08-05 16:17:53+0100, original_timestamp: 2016-08-05 16:17:53+0100, rating: 1
  </code></pre>