[Ethereum] Type casting in solidity

contract-developmentsolidity

String Literals As with integer literals, their type can vary,
but they are implicitly convertible to bytes if they fit, to bytes and
to string.

How? How can I convert uint to bytes?

also is there any way to cast address-typed variable to bytes32?

Best Answer

for conversion the simple bytes32("string"); would work!