Fix bug with sol::object not being copyable
Cast result of floating point retrieval before receiving it