working with matlab-scala type conversions.