Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
How to convert datatype


I have an custom object with a property that is type decimal. I am assigning the webSlider.Value property to that decimal property.


I am getting an error in VS2008 that says "Cannot implicitly convert type 'object' to 'decimal'. An explicit conversion exists (are you missing a cast?)"  That is the exact text from the error.


I have not used "cast" in quite a few years; what is the syntax I would use?  Or is there a datatype conversion?