Bytes32 to uint

Hey,

Any way to convert bytes32 to uint? The only thing I found online only works before solidity 0.5.

Thanks!!!

Yes you can just cast uint(b).