Conversions to Other Types

Matrices cannot be converted to any other types. They do, however, have meaning as "boolean" (true or false) expressions in control structures ([link]). If used in the context of a boolean expression (like an if statement, [link]), the expression will be true if there are any non-zero values in the matrix. This means that a matrix of all zeros will be false, while all other matrices are true.