more scala conversions