Refrain from using deprecated floatValue()
Rewrite newinstance() calls to 6.0 closure-based syntax
Add missing class
MFB: improve exception message
MFB: improve exception message
See xp-framework/xp-framework@d4f3018f4335146f95e149fdcb39cae04c930850