Cross compile tools

I'd prefer `.asInstanceOf[Double]` here.