Fix procedure casting not preserving original value
Removed double parentheses
Don't use object lookup
Merge branch 'MathWizz-procedure-cast-fix'