[scala] I want to get the type of a variable at runtime